FDb class
依赖sqflite
Constructors
- FDb.new()
-
factory
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
-
commit(
List< Map< sqlList, {bool noResult = false, bool continueOnError = false}) → Future<SqlType, String> >void> -
noResult
不关心结果并担心大批量的性能continueOnError
即使一个操作失败,也会运行并提交每个成功的操作sqlList
key-value的列表,key是语句类型,value是sql语句。List本身有序,所以不用担心顺序问题 -
execute(
String sql, [List< Object> ? arguments]) → void - 执行
-
init(
String dbName, int version, {OnDatabaseCreateFn? onCreate, OnDatabaseVersionChangeFn? onUpgrade}) → dynamic -
打开一个数据库
dbName
数据库名称version
数据库版本onCreate
数据库创建时执行的逻辑onUpgrade
数据库升级时执行的逻辑 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rawDelete(
String sql, [List< Object> ? arguments]) → Future<int> - 删除,返回影响的行
-
rawInsert(
String sql, [List< Object> ? arguments]) → Future<int> - 添加
-
rawQuery(
String sql, [List< Object> ? arguments]) → Future<List< Map< >String, Object?> > - 查询
-
rawUpdate(
String sql, [List< Object> ? arguments]) → Future<int> - 修改
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited