Dao class
Constructors
- Dao()
-
const
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
-
batchDelete(
{required List objectsToDelete}) → Future< int> - Performs a batch delete operation on a table.
-
batchInsert(
{required List objectsToInsert, bool orUpdate = false}) → Future< int> - Performs a batch insert operation on a table.
-
batchInsertOrDelete(
{required List objects}) → Future< int> - Performs a batch insert or delete operation on a table.
-
batchInsertOrUpdate(
{required List objects}) → Future< int> - Performs a batch insert or update operation on a table.
-
batchUpdate(
{required List objectsToUpdate}) → Future< int> - This method is used to update a list of objects in the database.
-
deleteSingle(
{required dynamic objectToDelete}) → Future< int> - This method is used to delete a single object from the database.
-
getDatabase(
) → Future< Database?> - This method is used to get the database instance from the DBProvider.
-
getTableName(
dynamic obj) → String - This method is used to get the table name for a given object.
-
insertSingle(
{required dynamic objectToInsert}) → Future< int> - This method is used to insert a single object into the database.
-
makeWhere(
String where, String x, List< String> primary) → String - This method is used to construct a WHERE clause for SQL operations.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
select<
T> ({required SqlBuilder sqlBuilder, bool print = false, dynamic model}) → Future - Executes a 'SELECT' SQL query and returns the results.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateSingle(
{required dynamic objectToUpdate}) → Future< int> - This method is used to update a single object in the database.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited