mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 03:16:01 +00:00
feat(duckdb): add rename sql object
This commit is contained in:
@@ -2,6 +2,10 @@ const { SqlDumper, arrayToHexString } = require('dbgate-tools');
|
||||
|
||||
class Dumper extends SqlDumper {
|
||||
autoIncrement() {}
|
||||
|
||||
renameSqlObject(obj, newname) {
|
||||
this.putCmd('^alter %k %f ^rename ^to %i', this.getSqlObjectSqlName(obj.objectTypeField), obj, newname);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Dumper;
|
||||
|
||||
Reference in New Issue
Block a user