33// ZeeQL
44//
55// Created by Helge Heß on 22.08.19.
6- // Copyright © 2019-2025 ZeeZide GmbH. All rights reserved.
6+ // Copyright © 2019-2026 ZeeZide GmbH. All rights reserved.
77//
88
99public extension AccessDataSource {
@@ -67,7 +67,7 @@ public extension AccessDataSource {
6767 func fetchObjectsFor( ids values: Any ... , cb: ( Object ) -> Void ) throws {
6868 guard let pkeys = entity? . primaryKeyAttributeNames, pkeys. count == 1 else {
6969 throw AccessDataSourceError
70- . CannotConstructFetchSpecification ( . invalidPrimaryKey)
70+ . cannotConstructFetchSpecification ( . invalidPrimaryKey)
7171 }
7272
7373 try fetchObjectsFor ( attribute: pkeys [ 0 ] , with: values, cb: cb)
@@ -85,7 +85,7 @@ public extension AccessDataSource {
8585 func fetchObjectsFor( ids values: Any ... ) throws -> [ Object ] {
8686 guard let pkeys = entity? . primaryKeyAttributeNames, pkeys. count == 1 else {
8787 throw AccessDataSourceError
88- . CannotConstructFetchSpecification ( . invalidPrimaryKey)
88+ . cannotConstructFetchSpecification ( . invalidPrimaryKey)
8989 }
9090
9191 var objects = [ Object ] ( )
@@ -117,7 +117,7 @@ public extension AccessDataSource { // GIDs
117117 //where S.Element : GlobalID
118118 where S. Element == KeyGlobalID
119119 {
120- guard let entity = entity else { throw AccessDataSourceError . MissingEntity }
120+ guard let entity = entity else { throw AccessDataSourceError . missingEntity }
121121 let gidQualifiers = globalIDs. map { entity. qualifierForGlobalID ( $0) }
122122 let fs = ModelFetchSpecification ( entity: entity,
123123 qualifier: gidQualifiers. or ( ) )
@@ -173,14 +173,14 @@ public extension AccessDataSource { // Finders
173173
174174 guard let findEntity = entity else {
175175 throw AccessDataSourceError
176- . CannotConstructFetchSpecification ( . missingEntity)
176+ . cannotConstructFetchSpecification ( . missingEntity)
177177 }
178178
179179 guard let pkeys = findEntity. primaryKeyAttributeNames, !pkeys. isEmpty else {
180180 // TODO: hm, should we invoke a 'primary key find' policy here? (like
181181 // matching 'id' or 'tablename_id')
182182 throw AccessDataSourceError
183- . CannotConstructFetchSpecification ( . invalidPrimaryKey)
183+ . cannotConstructFetchSpecification ( . invalidPrimaryKey)
184184 }
185185
186186 /* build qualifier for primary keys */
@@ -189,13 +189,13 @@ public extension AccessDataSource { // Finders
189189 // other keys
190190 let q : Qualifier
191191 if pkeys. count == 1 {
192- let key = findEntity. keyForAttributeWith ( name : pkeys [ 0 ] )
192+ let key = findEntity. keyForAttributeWithName ( pkeys [ 0 ] )
193193 q = KeyValueQualifier ( key, . equalTo, primaryKeyValues [ 0 ] )
194194 }
195195 else {
196196 var qualifiers = [ Qualifier ] ( )
197197 for i in 0 ..< pkeys. count {
198- let key = findEntity. keyForAttributeWith ( name : pkeys [ i] )
198+ let key = findEntity. keyForAttributeWithName ( pkeys [ i] )
199199 let q = KeyValueQualifier ( key, . equalTo, primaryKeyValues [ i] )
200200 qualifiers. append ( q)
201201 }
@@ -229,7 +229,7 @@ public extension AccessDataSource { // Finders
229229 try _primaryFetchObjects ( fs) {
230230 guard object == nil else {
231231 throw AccessDataSourceError
232- . FetchReturnedMoreThanOneResult ( fetchSpecification: fs,
232+ . fetchReturnedMoreThanOneResult ( fetchSpecification: fs,
233233 firstObject: object!)
234234 }
235235 object = $0
0 commit comments