SimpleSqflite class

Constructors

SimpleSqflite()

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

editDBPath(String dbName) Future<void>
修改数据库DB文件名称 无返回值
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
RunBatch(List<String> sql) Future<String>
传入sql语句组并事务提交多条sql语句 成功:操作成功 失败:操作失败 打印报错
RunDelete(String sql) Future<String>
传入sql语句并单独执行这一条删除语句 成功:删除成功 失败:删除失败 打印报错
RunInsert(String sql) Future<String>
传入sql语句并单独执行这一条插入语句 成功:插入成功 失败:插入失败 打印报错
RunSelect(String sql) Future<List<Map>>
传入sql语句并单独执行这一条搜索语句 成功:查询数据 失败:返回空 打印报错
RunSQL(String sql) Future<String>
传入sql语句并单独执行这一条语句 成功:操作成功 失败:操作失败 打印报错
RunUpdate(String sql) Future<String>
传入sql语句并单独执行这一条修改语句 成功:修改成功 失败:修改失败 打印报错
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

DBPath String
数据库的地址
getter/setter pair