EasySqfliteORM class

Constructors

EasySqfliteORM.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

avg(String tableName, String column) Future<double?>
bulkInsert(String tableName, List<Map<String, dynamic>> dataList) Future<void>
count(String tableName) Future<int>
createIndex(String tableName, String columnName) Future<void>
createManyToManyTable(String junctionTableName, String table1, String table2, String foreignKey1, String foreignKey2) Future<void>
createOneToManyTable(String tableName, String referenceTable, String foreignKey, Map<String, String> columns) Future<void>
createOneToOneTable(String tableName, String referenceTable, String foreignKey, Map<String, String> columns) Future<void>
createTable(String tableName, Map<String, String> columns) Future<void>
delete(String tableName, String whereClause, List whereArgs) Future<void>
insert(String tableName, Map<String, dynamic> data) Future<void>
joinQuery(String table1, String table2, String joinCondition, {String? where, List? whereArgs}) Future<List<Map<String, dynamic>>>
max(String tableName, String column) Future<int?>
min(String tableName, String column) Future<int?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paginate(String tableName, int pageSize, int pageIndex) Future<List<Map<String, dynamic>>>
performBatch(dynamic action(Batch batch)) Future<void>
query(String tableName, {String? where, List? whereArgs, int? limit, int? offset}) Future<List<Map<String, dynamic>>>
queryById(String tableName, int id) Future<Map<String, dynamic>?>
rawQuery(String sql, [List? arguments]) Future<List<Map<String, dynamic>>>
sum(String tableName, String column) Future<int?>
toString() String
A string representation of this object.
inherited
transaction(Future<void> action(Transaction txn)) Future<void>
update(String tableName, Map<String, dynamic> data, String whereClause, List whereArgs) Future<void>

Operators

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

Static Methods

init(String dbName) Future<void>