DatabaseConnection class abstract
Represents a single connection to a database.
A DatabaseConnection is acquired by using a DatabaseAdapter. TODO more docs
- Implementers
Constructors
Properties
-
adapter
→ DatabaseAdapter<
DatabaseConnection> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOpen → bool
-
True if this connection is still open and can be used.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Closes the connection.
-
delete<
TDao extends PKBaseDao> (TDao object) → Future< void> -
deleteId<
TPrimaryKey> (PrimaryKeyDataBean< TPrimaryKey> bean, TPrimaryKey id) → Future<void> -
deleteWhere(
DaoDataBean bean, Filter filter) → Future< int> - Returns number of affected rows.
-
idExists<
TPrimaryKey> (PrimaryKeyDataBean< TPrimaryKey> bean, TPrimaryKey id) → Future<bool> -
insert<
TDao extends BaseDao> (TDao object) → Future - Returns primary key of inserted object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query<
TDao> (DaoDataBean< TDao> bean, {Filter filter = Filter.empty, Sort sort = Sort.empty, int offset = 0, int limit = -1}) → Future<List< TDao> > -
queryId<
TDao, TPrimaryKey> (PKDaoDataBean< TDao, TPrimaryKey> bean, TPrimaryKey id) → Future<TDao?> -
select(
QuerySource bean, List< QuerySelect> select, {Filter filter = Filter.empty, Sort sort = Sort.empty, int offset = 0, int limit = -1}) → Future<List> -
toString(
) → String -
A string representation of this object.
inherited
-
update<
TDao extends PKBaseDao> (TDao object) → Future< void> -
updateId<
TPrimaryKey> (PrimaryKeyDataBean< TPrimaryKey> bean, TPrimaryKey id, Map<String, dynamic> values) → Future<void> -
updateWhere(
BaseDataBean bean, Map< String, dynamic> values, Filter filter) → Future<int> - Returns number of affected rows.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited