PrismaClient.fromEngine constructor

PrismaClient.fromEngine(
  1. Engine $engine, {
  2. QueryEngineRequestHeaders? headers,
})

Create a new prisma client for the given engine.

Implementation

PrismaClient.fromEngine(this.$engine, {QueryEngineRequestHeaders? headers})
    : $headers = headers {
  finalizer.attach(this, $engine, detach: this);
}