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.
This commit is contained in:
dswbx
2025-09-30 13:31:49 +02:00
parent 1eeb23232a
commit 0f54e8267f

View File

@@ -56,6 +56,7 @@ export class SqliteIntrospector extends BaseIntrospector {
)) FROM pragma_index_list(m.name) i
LEFT JOIN sqlite_master im ON im.name = i.name
AND im.type = 'index'
WHERE i.name not like 'sqlite_%'
) AS indices
FROM sqlite_master m
WHERE m.type IN ('table', 'view')