CuReSqlService<T> class
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
-
close()
→ Future<void>
-
-
delete(String tableName, int id)
→ Future<int>
-
-
deleteDatabaseFile(String dbName)
→ Future<void>
-
-
getAll(String tableName, {String orderBy = 'id DESC'})
→ Future<List<Map<String, dynamic>>>
-
-
getById(String tableName, int id, FromMap<T> fromMap)
→ Future<T?>
-
-
initDatabase(String dbName, List<CuReDatabaseTable> tables)
→ Future<void>
-
-
insert(String tableName, Map<String, dynamic> data)
→ Future<int>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
update(int id, String tableName, T item, ToMap<T> toMap)
→ Future<int>
-
Static Properties
-
database
↔ Database?
-
getter/setter pair