Code Monkey home page Code Monkey logo

Comments (7)

netyouli avatar netyouli commented on July 19, 2024

这个库已经做的很简单了,真正一行代码完成数据库操作,具体可以参考提供的demo示例

from whc_modelsqlitekit.

YM-BH avatar YM-BH commented on July 19, 2024

update 能不能根据条件去更新,不要更新其他字段

from whc_modelsqlitekit.

netyouli avatar netyouli commented on July 19, 2024

where不是条件吗

from whc_modelsqlitekit.

YM-BH avatar YM-BH commented on July 19, 2024

我想根据where 修改特定的字段内容

from whc_modelsqlitekit.

YM-BH avatar YM-BH commented on July 19, 2024

我的意思是 比如说我想如果age > 25,isStudent 为 NO

from whc_modelsqlitekit.

netyouli avatar netyouli commented on July 19, 2024

更新某个字段值目前api不支持,耐心等我更新吧

from whc_modelsqlitekit.

netyouli avatar netyouli commented on July 19, 2024

新版本已经支持这个问题:
// 更新整条记录中指定的字段(更新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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.