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;
3131const ReadPreference = mongodb . ReadPreference ;
3232
3333const 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-
5034const convertParseSchemaToMongoSchema = ( { ...schema } ) => {
5135 delete schema . fields . _rperm ;
5236 delete schema . fields . _wperm ;
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ export interface StorageAdapter {
3131 createClass ( className : string , schema : SchemaType ) : Promise < void > ;
3232 addFieldIfNotExists ( className : string , fieldName : string , type : any ) : Promise < void > ;
3333 deleteClass ( className : string ) : Promise < void > ;
34- deleteAllClasses ( ) : Promise < void > ;
3534 dropDatabase ( ) : Promise < void > ;
3635 deleteFields ( className : string , schema : SchemaType , fieldNames : Array < string > ) : Promise < void > ;
3736 getAllClasses ( ) : Promise < StorageClass [ ] > ;
You can’t perform that action at this time.
0 commit comments