ios - How can I retrieve object from DBResultSet (DBAccess) in Swift? -


i have class user.swift:

import uikit @objc(user)  class user: dbobject {     dynamic var sync: nsnumber?     dynamic var login: nsstring?     dynamic var password: nsstring?     dynamic var id_worker: nsnumber?  static func authorize(login: string, password: string) -> bool{     var query = user.query().wherewithformat("login = %@ , password = %@", withparameters: [login, password.md5])      var resset = query.fetch() dbresultset      if resset.count > 0 {         var user = resset[0] as! user     }      if resset.count > 0{         return true     } else {         return false     } } 

}

i want retrieve user object dbresultset. under debbuger strange construction:

enter image description here

how can retrieve object user dbresultset?


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -