DatabaseSql class
数据库做缓存sqlite
Constructors
Properties
- database ↔ Database?
-
getter/setter pair
- dbName ↔ String
-
getter/setter pair
- dbTableName ↔ String
-
getter/setter pair
- dbVersion ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDatabaseReady ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearData(
Database? db) → Future< bool?> - 删除表
-
closeDatabase(
Database db) → dynamic -
closeDb(
Database? db, List< Map< list) → Future<String, dynamic> >bool> - 删除表并关闭数据库
-
createDatabase(
) → Future< String> - 创建数据库
-
delDB(
) → dynamic - 删除数据库
-
deleteHttpCache(
Database? database, String cacheKey) → Future< int> - 删除
-
initDatabase(
) → Future - 初始化
-
insertHttp(
Database? database, String cacheKey, String value) → Future< int?> - 插入
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openCacheDatabase(
String paths) → Future< Database> - 打开数据库
-
queryAll(
Database database, String cacheKey) → Future< List< Map< >String, dynamic> > - 查询
-
queryHttp(
Database? database, String cacheKey) → Future< String?> -
toString(
) → String -
A string representation of this object.
inherited
-
updateHttp(
Database? database, String cacheKey, String value) → Future< int> - 更新
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited