SqlDriverAdapter class abstract

Main database adapter interface.

All database adapters (PostgreSQL, MySQL, SQLite, etc.) must implement this interface to work with the Prisma client.

Implemented types
Implementers

Constructors

SqlDriverAdapter()

Properties

adapterName String
Adapter package name (e.g., '@prisma/adapter-pg')
no setter
hashCode int
The hash code for this object.
no setterinherited
provider String
Database provider name (e.g., 'postgresql', 'mysql', 'sqlite')
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
Close the connection and clean up resources
executeRaw(SqlQuery query) Future<int>
Execute a raw SQL command and return affected row count
override
executeScript(String script) Future<void>
Execute a SQL script (multiple statements)
getConnectionInfo() ConnectionInfo?
Get connection information (schema, capabilities, etc.)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryRaw(SqlQuery query) Future<SqlResultSet>
Execute a raw SQL query and return results
override
startTransaction([IsolationLevel? isolationLevel]) Future<Transaction>
Start a new database transaction
toString() String
A string representation of this object.
inherited

Operators

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