mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 03:16:01 +00:00
data duplicator works in simple case
This commit is contained in:
@@ -99,6 +99,14 @@ class Dumper extends SqlDumper {
|
||||
putByteArrayValue(value) {
|
||||
this.putRaw(`e'\\\\x${arrayToHexString(value)}'`);
|
||||
}
|
||||
|
||||
selectScopeIdentity(table) {
|
||||
this.put(
|
||||
"^SELECT currval(pg_get_serial_sequence('%f','%s'))",
|
||||
table,
|
||||
table.columns?.find(x => x.autoIncrement)?.[0]?.columnName
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Dumper;
|
||||
|
||||
Reference in New Issue
Block a user