ABBaseDao<T> class abstract

Abstract BaseDao

Implementers

Constructors

ABBaseDao()

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

addColumn(String field) → void
inherited
clear([String? tableName]) Future<void>
清空表所有数据
inherited
composeIds(List<Object> datas) String
组装Ids
inherited
delete(T? t, [String? tableName]) Future<int>
删除数据
inherited
deleteMulti(List<Object?>? datas, [String? tableName]) Future<int>
删除多个Id
inherited
drop([String? tableName]) Future<void>
删除表所有数据
inherited
execute(String sql, [List<Object?>? arguments]) Future<void>
执行sql语句
inherited
fromJson(Map json) → T
inherited
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
queryMultiIds(List<Object?>? datas, [String? tableName]) Future<List<T>>
查询多个ids
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
inherited
updateAll(List<T>? t, {String? tableName, ConflictAlgorithm? conflictAlgorithm = ConflictAlgorithm.replace}) Future<int>
更新所有数据库
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited