new object templates (generic+mssql)

This commit is contained in:
Jan Prochazka
2021-12-09 11:16:59 +01:00
parent 83544170f3
commit ad2c293f6f
4 changed files with 37 additions and 2 deletions

View File

@@ -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 [];
},
};