Make DatabaseSchemaID and DatabaseObjectID public

This is also a big cleanup opportunity.

We need public schema identifiers in order to support the customization of schema introspection.
This commit is contained in:
Gwendal Roué authored and Gwendal Roué committed 2025-09-23 17:12:27 +02:00
1 parent aab2664431
commit 30313623eb
4 files changed
+208 -167

No files matched your search

@@ -123,7 +123,7 @@ struct SQLForeignKeyRequest {
}
private func tableType(_ db: Database, for name: String) throws -> TableType? {
for schemaID in try db.schemaIdentifiers() {
for schemaID in try db.fetchSchemaIdentifiers() {
if try db.schema(schemaID).containsObjectNamed(name, ofType: .table) {
return TableType(isView: false)
}