PrismaClient class

Prisma client base class

Constructors

PrismaClient.fromEngine(Engine $engine, {QueryEngineRequestHeaders? headers})
Create a new prisma client for the given engine.

Properties

$engine Engine
The prisma engine.
final
$headers QueryEngineRequestHeaders?
Query engine request headers.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

$connect() Future<void>
Connect to the prisma engine.
$disconnect() Future<void>
Disconnect from the prisma engine.
$executeRaw(String query, {List parameters = const []}) Future<int>
Execute raw SQL.
$on(Iterable<PrismaLogLevel> levels, PrismaLogHandler handler) → void
The $on() method allows you to subscribe to events.
$queryRaw(String query, {List parameters = const []}) Future
Query raw SQL.
$transaction<T>(PrismaTransactionCallback<T> callback, {TransactionOptions options = const TransactionOptions(), TransactionHeaders headers = const TransactionHeaders()}) Future<T>
Interactive transactions.
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

Static Properties

finalizer Finalizer<Engine>
Finalizer
final