-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在swift中使用saveToDb报如下错误 #160
Comments
还未创建表,是不是你版本比较低?好几年前已经会自动创建表了 |
我是pod 最新的版本,LKDBHelper ***@***.***,请问是不是swift中要存储的对象还需要单独做什么处理呢
…------------------ 原始邮件 ------------------
发件人: "li6185377/LKDBHelper-SQLite-ORM" ***@***.***>;
发送时间: 2022年3月17日(星期四) 下午5:45
***@***.***>;
***@***.******@***.***>;
主题: Re: [li6185377/LKDBHelper-SQLite-ORM] 在swift中使用saveToDb报如下错误 (Issue #160)
还未创建表,是不是你版本比较低?好几年前已经会自动创建表了
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
@objcMembers,我pod的版本是2.5.7,应该是最新的
…------------------ 原始邮件 ------------------
发件人: "li6185377/LKDBHelper-SQLite-ORM" ***@***.***>;
发送时间: 2022年3月17日(星期四) 下午5:45
***@***.***>;
***@***.******@***.***>;
主题: Re: [li6185377/LKDBHelper-SQLite-ORM] 在swift中使用saveToDb报如下错误 (Issue #160)
Closed #160.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Swift Model 要继承 NSObject, 核心还是靠 OC runtime 的 |
@objcMembers
class SFUserModel: NSObject, HandyJSON {
我是继承自nsobject写的
…------------------ 原始邮件 ------------------
发件人: "li6185377/LKDBHelper-SQLite-ORM" ***@***.***>;
发送时间: 2022年3月17日(星期四) 晚上6:45
***@***.***>;
***@***.******@***.***>;
主题: Re: [li6185377/LKDBHelper-SQLite-ORM] 在swift中使用saveToDb报如下错误 (Issue #160)
Swift Model 要继承 NSObject, 核心还是靠 OC runtime 的
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
在swift4.0中使用class_copyPropertyList来获取类里面的属性列表,结果发现获取的列表使用为空,count始终为0。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2022-02-19 09:52:48.930003+0800 Test[92335:9227843]
#LKDBHelper ERROR: -[LKDBHelper(DatabaseExecute) insertBase:]_block_invoke [Line 1285]
sql:replace into Test.SFUserModel(schoolId,appNameLogo,nick,scope,startStudy,code,platform,memberId,username,iconUrl,messageCount) values(?,?,?,?,?,?,?,?,?,?,?)
args: (
"51b68f962e7811e895fe02420a183a07",
"",
"嘿看看",
"",
"0",
"",
"",
"5ccf2df8f7cb11eab966fa163e73eb62",
"",
,
"0",
)
sqlite error :no such table: Test.SFUserModel
The text was updated successfully, but these errors were encountered: