Database class Null safety

An opened sqlite3 database.

Constructors

Database()

Properties

handle Pointer<void>
The native database connection handle from sqlite. [...]
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
lastInsertRowId int
Returns the row id of the last inserted row.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
userVersion int
The application defined version of this database.
read / write

Methods

createAggregateFunction<V>({required String functionName, required AggregateFunction<V> function, AllowedArgumentCount argumentCount = const AllowedArgumentCount.any(), bool deterministic = false, bool directOnly = true}) → void
Creates an application-defined aggregate function that can be used from sql queries sent against this database. [...]
createFunction({required String functionName, required ScalarFunction function, AllowedArgumentCount argumentCount = const AllowedArgumentCount.any(), bool deterministic = false, bool directOnly = true}) → void
Creates a scalar function that can be called from sql queries sent against this database. [...]
dispose() → void
Closes this database and releases associated resources.
execute(String sql) → void
Executes the sql statement and ignores the result.
getUpdatedRows() int
The amount of rows affected by the last INSERT, UPDATE or DELETE statement.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
prepare(String sql, {bool persistent = false, bool vtab = true}) PreparedStatement
Compiles the sql statement to execute it later. [...]
select(String sql, [List<Object?> parameters]) ResultSet
Prepares the sql select statement and runs it with the provided parameters.
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited