Database class

Provides easy access to the database in relation to the current Session.

Available extensions

Properties

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

Methods

ensureVectorLoaded() Future<void>

Available on Database, provided by the VectorDatabase extension

Ensures that the vector extension is loaded in the database. This is useful to ensure that vector runtime parameters default values are available. Otherwise, if parameters are queried before the extension is loaded, they will return null, making the behavior unpredictable.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
transaction<R>(TransactionFunction<R> transactionFunction, {TransactionSettings? settings}) Future<R>
Executes a Transaction.
unsafeExecute(String query, {int? timeoutInSeconds, Transaction? transaction, QueryParameters? parameters}) Future<int>
Executes a single SQL query. Returns the number of rows that were affected by the query.
unsafeQuery(String query, {int? timeoutInSeconds, Transaction? transaction, QueryParameters? parameters}) Future<DatabaseResult>
Executes a single SQL query. A List of rows represented of another List with columns will be returned.
unsafeSimpleExecute(String query, {int? timeoutInSeconds, Transaction? transaction}) Future<int>
Executes a single SQL query in simple query mode. Returns the number of rows that were affected by the query.
unsafeSimpleQuery(String query, {int? timeoutInSeconds, Transaction? transaction}) Future<DatabaseResult>
Executes a single SQL query in simple query mode. A List of rows represented of another List with columns will be returned.

Operators

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