DatabaseConnection class abstract
Abstract base class for database connections
- Implementers
Constructors
Properties
- databaseType → String
-
Gets the database type (sqlite, postgresql, mysql)
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
beginTransaction(
) → Future< DatabaseTransaction> - Begins a database transaction
-
close(
) → Future< void> - Closes the database connection
-
execute(
String sql, {List? parameters}) → Future< int> - Executes a SQL command (INSERT, UPDATE, DELETE) and returns affected rows
-
executeBatch(
String sql, List< List> parametersList) → Future<List< int> > - Executes multiple SQL commands in a batch
-
isConnected(
) → Future< bool> - Tests if the connection is still active
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query(
String sql, {List? parameters}) → Future< DataFrame> - Executes a SQL query and returns a DataFrame
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited