feat(gaussdb): allow clearing query schema
This commit is contained in:
3 files changed
+8
-6
No files matched your search
+4
-4
@@ -49,9 +49,9 @@ function oracleConn(id: string): ConnectionConfig {
|
||||
};
|
||||
}
|
||||
|
||||
function oracleCompatibleConn(id: string, dbType: "oracle" | "dameng" | "oceanbase-oracle"): ConnectionConfig {
|
||||
function clearableQuerySchemaConn(id: string, dbType: "oracle" | "dameng" | "gaussdb" | "oceanbase-oracle"): ConnectionConfig {
|
||||
return {
|
||||
...oracleConn(id),
|
||||
...conn(id),
|
||||
db_type: dbType,
|
||||
};
|
||||
}
|
||||
@@ -4246,7 +4246,7 @@ test("closing a data tab releases its tab-scoped client session", async () => {
|
||||
}
|
||||
});
|
||||
|
||||
for (const dbType of ["oracle", "dameng", "oceanbase-oracle"] as const) {
|
||||
for (const dbType of ["oracle", "dameng", "gaussdb", "oceanbase-oracle"] as const) {
|
||||
test(`clearing a ${dbType} query schema releases its tab-scoped client session`, async () => {
|
||||
const restoreStorage = installMemoryStorage();
|
||||
setActivePinia(createPinia());
|
||||
@@ -4255,7 +4255,7 @@ for (const dbType of ["oracle", "dameng", "oceanbase-oracle"] as const) {
|
||||
const originalFetch = globalThis.fetch;
|
||||
const connectionId = `${dbType}-1`;
|
||||
|
||||
connectionStore.addEphemeralConnection(oracleCompatibleConn(connectionId, dbType));
|
||||
connectionStore.addEphemeralConnection(clearableQuerySchemaConn(connectionId, dbType));
|
||||
const tabId = store.createTab(connectionId, "SERVICE", "Query", "query", "REPORTING");
|
||||
const closedSessions: any[] = [];
|
||||
|
||||
|
||||
Reference in new issue
Block a user