Ƭ MigrationFunction: function
Defined in src/index.ts:40
Migration function.
param
DB instance.
param
MongoDB session, if passed it will use transaction.
▸ (db
: Db, session?
: ClientSession): Promise‹void›
Parameters:
Name | Type |
---|---|
db |
Db |
session? |
ClientSession |
• CONFIG_NAMES: string[] = [ '.yammyrc', '.yammyrc.json', '.yammyrc.js', '.migrationsrc', '.migrationsrc.json', '.migrationsrc.js', ]
Defined in src/cli-helpers.ts:4
▸ getConfig(file?
: undefined | string): ConfigFile | undefined
Defined in src/cli-helpers.ts:15
Parameters:
Name | Type |
---|---|
file? |
undefined | string |
Returns: ConfigFile | undefined