DatapodDatabase class abstract interface

Represents a database connection instance and provides access to its features.

This is the primary interface for interacting with a specific database backend (e.g., Postgres, MySQL). It orchestrates transactions, schema management, and low-level SQL execution.

Properties

connection DatabaseConnection
The underlying connection provided by the plugin.
no setter
hashCode int
The hash code for this object.
no setterinherited
migrationConnection DatabaseConnection?
An optional connection with elevated privileges for migrations.
no setter
name String
The name of this database as defined in databases.yaml.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemaManager SchemaManager
The schema manager for this database.
no setter
transactionManager TransactionManager
The TransactionManager for this database.
no setter

Methods

close() Future<void>
Closes the database connection and releases any pooled resources.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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