Skip to content
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

Open
deng690990 opened this issue Feb 19, 2022 · 5 comments
Open

在swift中使用saveToDb报如下错误 #160

deng690990 opened this issue Feb 19, 2022 · 5 comments

Comments

@deng690990
Copy link

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

@li6185377
Copy link
Owner

还未创建表,是不是你版本比较低?好几年前已经会自动创建表了

@deng690990
Copy link
Author

deng690990 commented Mar 17, 2022 via email

@deng690990
Copy link
Author

deng690990 commented Mar 17, 2022 via email

@li6185377 li6185377 reopened this Mar 17, 2022
@li6185377
Copy link
Owner

Swift Model 要继承 NSObject, 核心还是靠 OC runtime 的

@deng690990
Copy link
Author

deng690990 commented Mar 17, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants