mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 19:56:00 +00:00
fix: do not filter keyspaces
This commit is contained in:
@@ -146,9 +146,7 @@ const driver = {
|
|||||||
},
|
},
|
||||||
// list databases on server
|
// list databases on server
|
||||||
async listDatabases(dbhan) {
|
async listDatabases(dbhan) {
|
||||||
const result = await dbhan.client.execute(
|
const result = await dbhan.client.execute('SELECT keyspace_name FROM system_schema.keyspaces');
|
||||||
"SELECT keyspace_name FROM system_schema.keyspaces WHERE keyspace_name >= 'system' ALLOW FILTERING"
|
|
||||||
);
|
|
||||||
return result.rows.map((row) => ({ name: row.keyspace_name }));
|
return result.rows.map((row) => ({ name: row.keyspace_name }));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user