rake-db 2.4.14 → 2.4.16
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.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { quote, getRaw, EnumColumn, UnknownColumn, columnTypes, getColumnTypes, getTableData, ColumnType, resetTableData, TransactionAdapter, logParamToLogObject, createDb as createDb$1, Adapter, columnsByType, instantiateColumn, DomainColumn, CustomTypeColumn, ArrayColumn, columnCode,
|
|
2
|
-
import { singleQuote, isRaw, toArray, snakeCaseKey, nameKey, emptyObject, pathToLog, raw, addCode, quoteObjectKey } from 'orchid-core';
|
|
1
|
+
import { quote, getRaw, EnumColumn, UnknownColumn, columnTypes, getColumnTypes, getTableData, ColumnType, resetTableData, TransactionAdapter, logParamToLogObject, createDb as createDb$1, Adapter, columnsByType, instantiateColumn, DomainColumn, CustomTypeColumn, ArrayColumn, columnCode, primaryKeyToCode, indexToCode, foreignKeyToCode, TimestampColumn, foreignKeyArgsToCode } from 'pqb';
|
|
2
|
+
import { singleQuote, isRaw, toArray, snakeCaseKey, nameKey, emptyObject, pathToLog, raw, codeToString, addCode, rawToCode, quoteObjectKey } from 'orchid-core';
|
|
3
3
|
import path from 'path';
|
|
4
4
|
import { readdir, mkdir, writeFile } from 'fs/promises';
|
|
5
5
|
import prompts from 'prompts';
|
|
@@ -2547,13 +2547,13 @@ const pullDbStructure = async (options, config) => {
|
|
|
2547
2547
|
`Found unsupported types:
|
|
2548
2548
|
${unsupportedEntries.map(([type, columns]) => {
|
|
2549
2549
|
count += columns.length;
|
|
2550
|
-
return
|
|
2550
|
+
return `- ${type} is used for column${columns.length > 1 ? "s" : ""} ${columns.join(", ")}`;
|
|
2551
2551
|
}).join("\n")}
|
|
2552
|
-
|
|
2553
2552
|
Append \`as\` method manually to ${count > 1 ? "these" : "this"} column${count > 1 ? "s" : ""} to treat ${count > 1 ? "them" : "it"} as other column type`
|
|
2554
2553
|
);
|
|
2555
2554
|
}
|
|
2556
2555
|
(_c = config.logger) == null ? void 0 : _c.log("Database pulled successfully");
|
|
2556
|
+
adapter.close();
|
|
2557
2557
|
};
|
|
2558
2558
|
|
|
2559
2559
|
const rakeDb = async (options, partialConfig = {}, args = process.argv.slice(2)) => {
|