LitePal
LitePal copied to clipboard
An Android library that makes developers use SQLite database extremely easy.
信息查询
请问,我想查询库里面是否有一个人name叫 ”张三“的。这个用kotlin怎么查呢,谢谢了
org.litepal.exceptions.DatabaseGenerateException: An exception that indicates there was an error with SQL parsing or execution. create table group (id integer primary key autoincrement,name text, code text) at org.litepal.tablemanager.Generator.execute(Generator.java:115) at org.litepal.tablemanager.Creator.createOrUpgradeTable(Creator.java:54) at...
按照README中的说明依次添加了 1. build.gradle中的dependencies ``` dependencies { implementation 'org.litepal.guolindev:core:3.2.3' implementation 'androidx.appcompat:appcompat:1.3.0' implementation 'com.google.android.material:material:1.4.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' } ``` 2. 在app/src/main中新建文件夹assets并添加litepal.xml(已粘贴对应内容) 3. 在AndroidManifest.xml中配置 ``` xml ``` 这里就开始有问题了,IDE报错...
后台返回的值为null,然后存进数据库中的值也为null,请问该怎么把所有这个值为null的数据查询出来。
写了个比较复杂的delete语句,发现现有api无法对sql进行分解,然后就想完整的执行整条sql语句
要怎么使用联合主键呢??
org.litepal.exceptions.LitePalSupportException: Cursor window allocation of 2048 kb failed.
后续是否考虑将AES加密模式升级,现在CBC模式存在无法对密文进行完整性校验问题,大部分建议使用GCM模式或CCM。