mssql bulk table writer

This commit is contained in:
Jan Prochazka
2020-06-11 13:58:34 +02:00
parent a86f7e96ca
commit 38b6350ef8
12 changed files with 187 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ class DatabaseAnalyser {
this.structure = null;
/** import('@dbgate/types').DatabaseModification[]) */
this.modifications = null;
this.singleObjectFilter = null;
}
async _runAnalysis() {

View File

@@ -155,7 +155,7 @@ class SqlDumper {
if (column.isPersisted) this.put(' ^persisted');
return;
}
this.put('%k', column.dataType);
this.put('%k', column.dataType || this.dialect.fallbackDataType);
if (column.autoIncrement) {
this.autoIncrement();
}