File tree Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -31,22 +31,6 @@ const MongoClient = mongodb.MongoClient;
31
31
const ReadPreference = mongodb . ReadPreference ;
32
32
33
33
const MongoSchemaCollectionName = '_SCHEMA' ;
34
-
35
- const storageAdapterAllCollections = mongoAdapter => {
36
- return mongoAdapter . connect ( )
37
- . then ( ( ) => mongoAdapter . database . collections ( ) )
38
- . then ( collections => {
39
- return collections . filter ( collection => {
40
- if ( collection . namespace . match ( / \. s y s t e m \. / ) ) {
41
- return false ;
42
- }
43
- // TODO: If you have one app with a collection prefix that happens to be a prefix of another
44
- // apps prefix, this will go very very badly. We should fix that somehow.
45
- return ( collection . collectionName . indexOf ( mongoAdapter . _collectionPrefix ) == 0 ) ;
46
- } ) ;
47
- } ) ;
48
- }
49
-
50
34
const convertParseSchemaToMongoSchema = ( { ...schema } ) => {
51
35
delete schema . fields . _rperm ;
52
36
delete schema . fields . _wperm ;
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ export interface StorageAdapter {
31
31
createClass ( className : string , schema : SchemaType ) : Promise < void > ;
32
32
addFieldIfNotExists ( className : string , fieldName : string , type : any ) : Promise < void > ;
33
33
deleteClass ( className : string ) : Promise < void > ;
34
- deleteAllClasses ( ) : Promise < void > ;
35
34
dropDatabase ( ) : Promise < void > ;
36
35
deleteFields ( className : string , schema : SchemaType , fieldNames : Array < string > ) : Promise < void > ;
37
36
getAllClasses ( ) : Promise < StorageClass [ ] > ;
You can’t perform that action at this time.
0 commit comments