rake-db 2.27.7 → 2.27.9
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 +11 -1
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -1
- package/dist/index.mjs.map +1 -1
- package/dist/node-postgres.d.ts +2 -1463
- package/dist/node-postgres.js +9 -5845
- package/dist/node-postgres.js.map +1 -1
- package/dist/node-postgres.mjs +2 -5838
- package/dist/node-postgres.mjs.map +1 -1
- package/dist/postgres-js.d.ts +2 -1463
- package/dist/postgres-js.js +9 -5845
- package/dist/postgres-js.js.map +1 -1
- package/dist/postgres-js.mjs +2 -5838
- package/dist/postgres-js.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -5858,6 +5858,22 @@ const migrateFiles = async (db, files) => {
|
|
|
5858
5858
|
}
|
|
5859
5859
|
});
|
|
5860
5860
|
};
|
|
5861
|
+
const makeMigrateAdapter = (config) => {
|
|
5862
|
+
const conf = ensureMigrationsPath(ensureBasePathAndDbScript(config || {}));
|
|
5863
|
+
return async (adapter, params) => {
|
|
5864
|
+
await migrateAndClose({
|
|
5865
|
+
adapter,
|
|
5866
|
+
...params,
|
|
5867
|
+
config: {
|
|
5868
|
+
...conf,
|
|
5869
|
+
columnTypes: conf.columnTypes || makeColumnTypes(defaultSchemaConfig),
|
|
5870
|
+
migrationId: conf.migrationId || migrationConfigDefaults.migrationId,
|
|
5871
|
+
migrationsTable: conf.migrationsTable || migrationConfigDefaults.migrationsTable,
|
|
5872
|
+
import: conf.import || migrationConfigDefaults.import
|
|
5873
|
+
}
|
|
5874
|
+
});
|
|
5875
|
+
};
|
|
5876
|
+
};
|
|
5861
5877
|
|
|
5862
|
-
export { astToMigration, concatSchemaAndName, createMigrationInterface, dbColumnToAst, encodeColumnDefault, getConstraintName, getDbStructureTableData, getDbTableColumnsChecks, getExcludeName, getIndexName, getSchemaAndTableFromName, instantiateDbColumn, introspectDbSchema, makeDomainsMap, makeFileVersion, makeStructureToAstCtx, migrate, migrateAndClose, migrateFiles, migrationConfigDefaults, promptSelect, rakeDbCommands, rakeDbWithAdapters, saveMigratedVersion, structureToAst, tableToAst, writeMigrationFile };
|
|
5878
|
+
export { RakeDbError, 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 };
|
|
5863
5879
|
//# sourceMappingURL=index.mjs.map
|