mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
parent
fc6a4eee61
commit
d103c58539
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user