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:
how can retrieve object user dbresultset?
Comments
Post a Comment