discontinuedPackage connect_database has been discontinued.

DatabaseDriver class abstract

Implementers

Constructors

DatabaseDriver()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → DatabaseType
no setter

Methods

commitTransaction() → Future<Result<Unit>>
connect() → Future<Result<Unit>>
disconnect() → Future<Result<Unit>>
execute(String query, {List? params}) → Future<Result<List<Map<String, dynamic>>>>
Executa uma query SQL e retorna os resultados como uma lista. params is optional for native Prepared Statements usage (v6).
executeCursor(String query, {List? params}) → Future<Result<Stream<Map<String, dynamic>>>>
Executa uma query SQL retornando um Stream para leitura linha-a-linha (Cursor). Ideal para grandes volumes de dados.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rollbackTransaction() → Future<Result<Unit>>
startTransaction() → Future<Result<Unit>>
toString() → String
A string representation of this object.
inherited
validateConnection() → Future<Result<bool>>
Validates if the connection is still alive and usable. Returns Success(true) if connection is valid, Success(false) otherwise.

Operators

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