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:
t8y2
2026-05-08 18:54:24 +08:00
parent 8a249a2194
commit 85be58822e
3 changed files with 26 additions and 26 deletions
+3 -1
View File
@@ -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: [],
})),