GithubHelp home page GithubHelp logo

lightbluewind / lkdbhelper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from li6185377/lkdbhelper-sqlite-orm

0.0 1.0 0.0 280 KB

this is an sqlite ORM(automatic database operation) . use fmdb

Home Page: http://blog.csdn.net/li6185377

lkdbhelper's Introduction

#LKDBHelper this is sqlite ORM (an automatic database operation)
thread-safe and not afraid of recursive deadlock #version 1.0 1, fix a recursive deadlock.
2, rewrite the asynchronous operation -
3, thread-safe
4, various bug modified optimize cache to improve performance

code using FMDatabase , can use the latest FMDatabase: https://github.com/ccgus/fmdb
The entity class automatic operation data #v1.0版本 1、修复了 递归死锁。
2、重写了 异步操作
3、线程安全
4、各种bug 修改,优化缓存,提高性能

低层采用FMDatabase 可自行使用最新的FMDatabase :https://github.com/ccgus/fmdb
根据实体类 自动操作数据

Automatic Reference Counting (ARC)

##example code can download the source code to look at it

根据Model自动数据库 操作 不用写 繁琐的SQL语句了

再也不用一个个去找字段 是否写错 格式 是否对应

yeah 总于有人star了 thanks

1.使用方法跟 LKDaobase 差不多 不过 取消了 继承LKDaobase 的方式 采用了LKDBHelper 统一管理

2.加入了 表版本管理 比如 当你升级的时候 需要对表 进行升级 可重载

+(LKTableUpdateType)tableUpdateWithDBHelper:(LKDBHelper *)helper oldVersion:(int)oldVersion newVersion:(int)newVersion 方法来 自己写操作 或者用默认的 删除旧表

3.每种操作 都有异步和同步 两种方式 可自行选择

具体 示例代码可下载源码自行查看

lkdbhelper's People

Contributors

li6185377 avatar

Watchers

 avatar

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.