mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 18:06:01 +00:00
compare DB: diff view
This commit is contained in:
@@ -68,3 +68,10 @@ export function computeTableDiffColumns(
|
||||
targetNotNull: row?.target?.notNull,
|
||||
}));
|
||||
}
|
||||
|
||||
export function getCreateTableScript(table: TableInfo, driver: EngineDriver) {
|
||||
if (!table || !driver) return '';
|
||||
const dmp = driver.createDumper();
|
||||
dmp.createTable(table);
|
||||
return dmp.s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user