From 0f54e8267faba0bc43331d6adf150115b923a34d Mon Sep 17 00:00:00 2001 From: dswbx Date: Tue, 30 Sep 2025 13:31:49 +0200 Subject: [PATCH] fix: exclude internal sqlite indices from introspection Added a condition to filter out internal SQLite indices named 'sqlite_%' during introspection, ensuring cleaner and more relevant metadata retrieval. --- app/src/data/connection/sqlite/SqliteIntrospector.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/data/connection/sqlite/SqliteIntrospector.ts b/app/src/data/connection/sqlite/SqliteIntrospector.ts index 70c3ff6..8ff2688 100644 --- a/app/src/data/connection/sqlite/SqliteIntrospector.ts +++ b/app/src/data/connection/sqlite/SqliteIntrospector.ts @@ -55,7 +55,8 @@ export class SqliteIntrospector extends BaseIntrospector { )) FROM pragma_index_info(i.name) ii) )) FROM pragma_index_list(m.name) i LEFT JOIN sqlite_master im ON im.name = i.name - AND im.type = 'index' + AND im.type = 'index' + WHERE i.name not like 'sqlite_%' ) AS indices FROM sqlite_master m WHERE m.type IN ('table', 'view')