SquiDB 介绍
SquiDB 是 Android 平台下 sqlite 数据库的封装层。简化了 sqlite 数据库的操作,合并了类型安全对象和面向对象 sql 语句处理。
示例代码:
long ageCutoff = System.currentTimeMillis() - (DateUtil.YEAR_IN_MILLIS * 18); Query peopleWhoCanVote = Query.select().where(Person.BIRTHDAY.lt(ageCutoff)); // This becomes select * from people where people.birthday < ? // where ? is the age cutoff arg SquidCursor<Person> Voters = dao.query(Person.class, peopleWhoCanVote);
SquiDB 官网
https://github.com/yahoo/squidb
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。