@datatruck/cli 0.11.1 → 0.11.2
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/Task/MysqlDumpTask.js +2 -0
- package/Task/PostgresqlDumpTask.js +2 -0
- package/package.json +1 -1
- package/util/zip-util.js +1 -1
package/Task/MysqlDumpTask.js
CHANGED
|
@@ -69,6 +69,8 @@ class PostgresqlDumpTask extends SqlDumpTaskAbstract_1.SqlDumpTaskAbstract {
|
|
|
69
69
|
WHERE
|
|
70
70
|
table_catalog = '${database}' AND
|
|
71
71
|
table_schema NOT IN ('pg_catalog', 'information_schema')
|
|
72
|
+
ORDER BY
|
|
73
|
+
CONCAT(table_schema, '.', table_name)
|
|
72
74
|
`);
|
|
73
75
|
}
|
|
74
76
|
async onExportTables(tableNames, output) {
|
package/package.json
CHANGED
package/util/zip-util.js
CHANGED
|
@@ -31,7 +31,7 @@ function buildArguments(filters) {
|
|
|
31
31
|
}
|
|
32
32
|
exports.buildArguments = buildArguments;
|
|
33
33
|
function parseZipStream(chunk, buffer, cb) {
|
|
34
|
-
const lines = chunk.trim().split(/\r?\n/
|
|
34
|
+
const lines = chunk.replaceAll("\b", "").trim().split(/\r?\n/);
|
|
35
35
|
for (const line of lines) {
|
|
36
36
|
let matches = null;
|
|
37
37
|
if ((matches = /^(\d+)% (\d+ )?\+/.exec(line))) {
|