mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-28 16:09:17 +00:00
fix(oracle): Oracle 11g compatibility and sidebar improvements
- Rewrite FETCH FIRST to ROWNUM for Oracle 11g (no 12c+ syntax) - Filter APEX_*, FLOWS_*, $-prefixed system schemas from sidebar - Set schema prefix on table nodes for schema-aware databases - Use all_objects instead of all_tables+all_views (4x faster) - Disable statement cache to avoid stale cursor issues - Update rust-oracle with streaming TTC, drain fixes
This commit is contained in:
@@ -493,6 +493,8 @@ export const useConnectionStore = defineStore("connection", () => {
|
||||
try {
|
||||
const querySchema = schema || database;
|
||||
const tables = await api.listTables(connectionId, database, querySchema);
|
||||
const config = getConfig(connectionId);
|
||||
const effectiveSchema = schema || (config?.db_type && isSchemaAware(config.db_type) ? database : undefined);
|
||||
setChildren(
|
||||
node,
|
||||
tables.map((t) => ({
|
||||
@@ -501,7 +503,7 @@ export const useConnectionStore = defineStore("connection", () => {
|
||||
type: (t.table_type === "VIEW" ? "view" : "table") as "view" | "table",
|
||||
connectionId,
|
||||
database,
|
||||
schema,
|
||||
schema: effectiveSchema,
|
||||
isExpanded: false,
|
||||
children: [],
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user