mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 00:16:00 +00:00
new object templates (generic+mssql)
This commit is contained in:
@@ -40,4 +40,10 @@ export const driverBase = {
|
||||
await this.query(pool, sqlItem, { discardResult: true });
|
||||
}
|
||||
},
|
||||
getNewObjectTemplates() {
|
||||
if (!this.dialect?.nosql) {
|
||||
return [{ label: 'New view', sql: 'CREATE VIEW myview\nAS\nSELECT * FROM table1' }];
|
||||
}
|
||||
return [];
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user