SQLiteConnection class

SQLite implementation of DatabaseConnection

Implemented types

Constructors

SQLiteConnection(DatabaseConfig config)

Properties

config → DatabaseConfig
final
databaseType → DatabaseType
Get database type
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
isOpen → bool
Check if connection is open
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

beginTransaction() → Future<DatabaseTransaction>
Begin a transaction
override
close() → Future<void>
Close the connection
override
execute(String sql, {Map<String, dynamic>? parameters}) → Future<int>
Execute a non-query statement (INSERT, UPDATE, DELETE)
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() → Future<void>
Open connection
query(String sql, {Map<String, dynamic>? parameters}) → Future<List<Map<String, dynamic>>>
Execute a query and return mapped results
override
rawQuery(String sql, {Map<String, dynamic>? parameters}) → Future<List<List>>
Execute a query and return raw results
override
toString() → String
A string representation of this object.
inherited

Operators

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