BasePrismaClient<Client extends BasePrismaClient<Client> > class
abstract
Prisma client base class
Constructors
- BasePrismaClient.new(Engine engine, {QueryEngineRequestHeaders? headers, TransactionInfo? transaction})
- Create a new instance of BasePrismaClient.
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
-
$commitTransaction(
) → Future< void> - Commit the current transaction.
-
$connect(
) → Future< void> - Connect to the prisma engine.
-
$disconnect(
) → Future< void> - Disconnect from the prisma engine.
-
$executeRaw(
String query, {Iterable parameters = const []}) → Future - Execute raw SQL.
-
$on(
Event event, Listener listener) → void - The $on() method allows you to subscribe to events.
-
$queryRaw(
String query, {Iterable parameters = const []}) → Future - Query raw SQL.
-
$rollbackTransaction(
) → Future< void> - Rollback the current transaction.
-
$startTransaction(
{TransactionHeaders? headers, Duration timeout = const Duration(seconds: 5), Duration maxWait = const Duration(seconds: 2), TransactionIsolationLevel? isolationLevel}) → Future< Client> - Start a new transaction.
-
$transaction<
T> (PrismaTransactionCallback< T, Client> callback, {TransactionHeaders? headers, Duration timeout = const Duration(seconds: 5), Duration maxWait = const Duration(seconds: 2), TransactionIsolationLevel? isolationLevel}) → Future<T> - Interactive transactions.
-
copyWith(
{QueryEngineRequestHeaders? headers, TransactionInfo? transaction}) → Client - Copy the client with new headers.
-
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