Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear([String? tableName])
→ Future<void>
-
清空表所有数据
-
delete(T? t, [String? tableName])
→ Future<int>
-
删除数据
-
drop([String? tableName])
→ Future<void>
-
删除表所有数据
-
execute(String sql, [List<Object?>? arguments])
→ Future<void>
-
执行sql语句
-
fromJson(Map json)
→ T
-
-
insert(T? t, [String? tableName])
→ Future<int>
-
插入单个model
inherited
-
insertAll(List<T?> t, {String? tableName, String? nullColumnHack, ConflictAlgorithm? conflictAlgorithm = ConflictAlgorithm.replace})
→ Future<int>
-
插入所有model
inherited
-
insertMap(Map<String, dynamic> t, [String? tableName])
→ Future<int>
-
插入map
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
query({String? tableName, bool? distinct, List<String>? columns, String? where, List<Object?>? whereArgs, String? groupBy, String? having, String? orderBy, int? limit, int? offset})
→ Future<List<T>?>
-
调用sqflite 封装好的查询
inherited
-
queryAll([String? tableName])
→ Future<List<T>?>
-
查询该表的所有数据
inherited
-
queryCount([String? tableName])
→ Future<int>
-
查询该表的总数
inherited
-
queryOne(Object arg, [String? tableName])
→ Future<T?>
-
根据id,查询一个
inherited
-
random([String? tableName])
→ Future<T?>
-
随机获取一个数据
inherited
-
randoms(int count, [String? tableName])
→ Future<List<T>?>
-
随机查询一组数据
inherited
-
rawQuery(String sql, [List<Object?>? arguments])
→ Future<List<T>?>
-
调用sql语句执行
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
update(T? t, [String? tableName])
→ Future<int>
-
更新map
-
updateAll(List<T>? t, {String? tableName, ConflictAlgorithm? conflictAlgorithm = ConflictAlgorithm.replace})
→ Future<int>
-
更新所有数据库