BoxerDatabaseUtil class

Constructors

BoxerDatabaseUtil()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

dropTable(DatabaseExecutor db, String tableName) Future<bool>
Drop table
getColumnNames(DatabaseExecutor db, String tableName) Future<List<String>>
Get table (except sqlite_master) column names
isTableExisted(DatabaseExecutor db, String tableName) Future<bool>
Check if current table created success using "sqlite_master"
iterateAllTables(DatabaseExecutor db, FutureOr<bool?> iterator(String tableName, List<String> columns)) Future<void>
Iterate all the tables
resetAutoId(DatabaseExecutor db, {String? tableName}) Future<void>
Reset auto increment ID. It may not working before u clear your table.
select(DatabaseExecutor db, String tableName, List<String> columns, {String? where, List<Object?>? whereArgs, bool isUnique = false}) Future<Object?>
TODO ... select need to completely support all the following parameters: Select using the assembled SQL, return List<Map<String, Object?>> or Map<String, Object?> or Object?
selectCount(DatabaseExecutor db, String tableName, {String? where, List<Object?>? whereArgs}) Future<int?>
Select count
selectMax(DatabaseExecutor db, String tableName, String column, {String? where, List<Object?>? whereArgs}) Future<Object?>
Select Max of column value
selectMin(DatabaseExecutor db, String tableName, String column, {String? where, List<Object?>? whereArgs}) Future<Object?>
Select Min of column value