Methods
Optional
afterUpSuccess
- afterUpSuccess(): unknown
Returns unknown
createCollection
- createCollection(collectionName): void
Returns void
createCollections
- createCollections(collectionNames): void
Parameters
collectionNames: string[]
Returns void
createIndex
- createIndex(collectionName, index, options?): void
Parameters
collectionName: string
index: IndexSpecification
Optional
options: Omit<CreateIndexesOptions, "session">
Returns void
defer
- defer(callback): void
Parameters
callback: ((db, client) => Promise<void>)
- (db, client): Promise<void>
Parameters
db: Db
client: ClientSession
Returns Promise<void>
Returns void
dropIndex
- dropIndex(collectionName, indexName, options?): void
Parameters
collectionName: string
indexName: string
Optional
options: Omit<CommandOperationOptions, "session">
Returns void
execUp
- execUp(session): Promise<void>
Returns Promise<void>