-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
iOS WCDB 字段更新 #61
Comments
|
可以参考 基础类、CRUD与Transaction 和 Sample-convenience 的代码。 我晚些时候也在注释上加上教程的链接。 |
好的,谢谢,还有,请问一下,用这些封装好的方法后,在哪能打印出SQL语句呢 |
目前没有提供打印SQL的方法。只在SQL执行出错时,在 你的具体需求是怎么样?是希望打印某一个操作的SQL,还是将所有执行的SQL都统一打印出来?能否用代码示例一下? |
希望能打印某一个操作的SQL,比如对某一行记录的几个字段进行更新的时候,希望看到相应的update操作的SQL |
debug mode下的全局的SQL log接口,类似
trace会在每一次执行SQL时触发。 是否满足需求? |
{Model.key1, Model.key2}这是iOS的什么格式 |
@zx1988 这是C++的代码 |
在更新一条记录的某几个字段的时候,使用这个方法
onProperties:(const WCTPropertyList &)propertyList
withRow:(WCTOneRow *)row
where:(const WCTCondition &)condition
请问这个propertyList应该是以怎样的格式,比如下面这个方法:
[database updateTable:story onProperties:@[] withRow:@[value1,value2,value3] where:Story.id == storyId];
这个onProperties对应的属性应该以怎样的格式写,在API里面没有看到相应的注释,不太懂c++,见谅。
The text was updated successfully, but these errors were encountered: