rake-db 2.27.32 → 2.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -325,6 +325,7 @@ interface PickRenameMigrations {
325
325
  renameMigrations?: RakeDbRenameMigrationsInput;
326
326
  }
327
327
  interface PickMigrationsTable {
328
+ schema?: string;
328
329
  migrationsTable: string;
329
330
  }
330
331
  interface PickTransactionSetting {
@@ -345,6 +346,7 @@ interface PickForceDefaultExports {
345
346
  forceDefaultExports?: boolean;
346
347
  }
347
348
  interface RakeDbBaseConfig<SchemaConfig extends ColumnSchemaConfig, CT = DefaultColumnTypes<DefaultSchemaConfig>> extends QueryLogOptions, PickImport, PickMigrationId, PickMigrationsPath, PickMigrations, PickRenameMigrations, PickMigrationsTable, PickMigrationCallbacks, PickForceDefaultExports, PickAfterChangeCommit {
349
+ schema?: string;
348
350
  schemaConfig: SchemaConfig;
349
351
  snakeCase: boolean;
350
352
  language?: string;
@@ -540,9 +542,7 @@ interface CreateMigrationInterfaceConfig<CT> extends QueryLogOptions {
540
542
  * @param config - config of `rakeDb`
541
543
  */
542
544
  declare const createMigrationInterface: <CT>(tx: AdapterBase, up: boolean, config: CreateMigrationInterfaceConfig<CT>) => DbMigration<CT>;
543
- interface MigrationAdapter extends AdapterBase {
544
- schema: string;
545
- }
545
+ type MigrationAdapter = AdapterBase;
546
546
  declare class Migration<CT> {
547
547
  adapter: MigrationAdapter;
548
548
  log?: QueryLogObject;
@@ -1519,6 +1519,10 @@ interface GetIndexOrExcludeName {
1519
1519
  }
1520
1520
  declare const getIndexName: GetIndexOrExcludeName;
1521
1521
  declare const getExcludeName: GetIndexOrExcludeName;
1522
+ declare const getMigrationsSchemaAndTable: (config: PickMigrationsTable) => {
1523
+ schema?: string;
1524
+ table: string;
1525
+ };
1522
1526
 
1523
1527
  declare const promptSelect: ({ message, options, active, inactive, }: {
1524
1528
  message: string;
@@ -1772,4 +1776,4 @@ interface RakeDbCommands {
1772
1776
  }
1773
1777
  declare const rakeDbCommands: RakeDbCommands;
1774
1778
 
1775
- export { type AnyRakeDbConfig, type ChangeCallback, type DbMigration, DbStructure, type InputRakeDbConfig, type InputRakeDbConfigBase, type IntrospectedStructure, type MigrateFnConfig, RakeDbAst, type RakeDbChangeFn, type RakeDbChangeFnWithPromise, type RakeDbConfig, RakeDbError, type RakeDbFn, type SilentQueries, type StructureToAstCtx, type StructureToAstTableData, astToMigration, concatSchemaAndName, createMigrationInterface, dbColumnToAst, encodeColumnDefault, getConstraintName, getDbStructureTableData, getDbTableColumnsChecks, getExcludeName, getIndexName, getSchemaAndTableFromName, instantiateDbColumn, introspectDbSchema, makeChange, makeDomainsMap, makeFileVersion, makeMigrateAdapter, makeStructureToAstCtx, migrate, migrateAndClose, migrateFiles, migrationConfigDefaults, processRakeDbConfig, promptSelect, rakeDbCommands, rakeDbWithAdapters, runCommand, saveMigratedVersion, structureToAst, tableToAst, writeMigrationFile };
1779
+ export { type AnyRakeDbConfig, type ChangeCallback, type DbMigration, DbStructure, type InputRakeDbConfig, type InputRakeDbConfigBase, type IntrospectedStructure, type MigrateFnConfig, RakeDbAst, type RakeDbChangeFn, type RakeDbChangeFnWithPromise, type RakeDbConfig, RakeDbError, type RakeDbFn, type SilentQueries, type StructureToAstCtx, type StructureToAstTableData, astToMigration, concatSchemaAndName, createMigrationInterface, dbColumnToAst, encodeColumnDefault, getConstraintName, getDbStructureTableData, getDbTableColumnsChecks, getExcludeName, getIndexName, getMigrationsSchemaAndTable, getSchemaAndTableFromName, instantiateDbColumn, introspectDbSchema, makeChange, makeDomainsMap, makeFileVersion, makeMigrateAdapter, makeStructureToAstCtx, migrate, migrateAndClose, migrateFiles, migrationConfigDefaults, processRakeDbConfig, promptSelect, rakeDbCommands, rakeDbWithAdapters, runCommand, saveMigratedVersion, structureToAst, tableToAst, writeMigrationFile };