insert into tables with identity

This commit is contained in:
Jan Prochazka
2020-05-21 15:09:48 +02:00
parent 6df7743b4c
commit 68f5c88fb8
9 changed files with 87 additions and 36 deletions

View File

@@ -11,6 +11,10 @@ class MsSqlDumper extends SqlDumper {
}
super.putStringValue(value);
}
allowIdentityInsert(table, allow) {
this.putCmd("^set ^identity_insert %f %k;&n", table, allow ? "on" : "off");
}
}
module.exports = MsSqlDumper;