MSSQL/Postgres: List views in table dropdown as well (#62867)

* MSSQL: Query views for table dropdown

* Postgres: Query views for table dropdown
This commit is contained in:
Zoltán Bedi 2023-02-06 15:16:32 +01:00 committed by GitHub
parent fc6a4eee61
commit d103c58539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -5,8 +5,7 @@ export function showDatabases() {
export function getSchemaAndName(database?: string) {
return `SELECT TABLE_SCHEMA + '.' + TABLE_NAME as schemaAndName
FROM [${database}].INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE'`;
FROM [${database}].INFORMATION_SCHEMA.TABLES`;
}
export function getSchema(database?: string, table?: string) {

View File

@ -16,7 +16,7 @@ export function showTables() {
'_timescaledb_config',
'timescaledb_information',
'timescaledb_experimental')
and table_type = 'BASE TABLE' and ${buildSchemaConstraint()}`;
and ${buildSchemaConstraint()}`;
}
export function getSchema(table?: string) {