mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
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:
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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user