Comments (7)
这个库已经做的很简单了,真正一行代码完成数据库操作,具体可以参考提供的demo示例
from whc_modelsqlitekit.
update 能不能根据条件去更新,不要更新其他字段
from whc_modelsqlitekit.
where不是条件吗
from whc_modelsqlitekit.
我想根据where 修改特定的字段内容
from whc_modelsqlitekit.
我的意思是 比如说我想如果age > 25,isStudent 为 NO
from whc_modelsqlitekit.
更新某个字段值目前api不支持,耐心等我更新吧
from whc_modelsqlitekit.
新版本已经支持这个问题:
// 更新整条记录中指定的字段(更新Person表在age字段大于25岁时name值为whc,age为100岁)
BOOL result = [WHCSqlite update:Person.self value:@"name = 'whc', age = 100"
where:@"age > 25"];
from whc_modelsqlitekit.
Related Issues (20)
- 主键类型可以设置为字符串类型吗 HOT 1
- 关于demo的线程安全测试问题 HOT 3
- whc_SqlitePath问题 HOT 5
- 实现了whc_SqlitePasswordKey协议方法,但数据库貌似没有加密 HOT 1
- 如果指定用户的ID(uid)为主键,插入后自动变为1 HOT 5
- 多个表,如果表名相互有包含关系,会出错 HOT 1
- 关于数据更新问题 HOT 2
- 关于whc_SqlitePasswordKey加密后 无法查看问题 HOT 2
- 数组里面如果是对象无法录入
- 自定义数据库路径查询不到数据 HOT 1
- block 增删改查
- 可以分库么
- demo 都跑不完,玩个毛线,浪费时间
- 如果加入新字段 保存失败 HOT 4
- 建议补充一个方法 HOT 1
- 支持模糊查询吗 HOT 1
- 设置加密后打开数据库就变慢了
- 如何给表设置相应的索引
- 更新表结构
- 不支持自定义主键和设置唯一约束保障同一条数据的唯一性确实是个遗憾
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whc_modelsqlitekit.