method PrismaAdapter.prototype.createDataSourceForEntity
PrismaAdapter.prototype.createDataSourceForEntity(entity: string): DataSource
Deprecated

Use PrismaAdapter.createDataSource instead — it is the promoted IDatabaseAdapter member, so the plugin reaches it without casting to this concrete class. Will be removed in the next major version.

Create a DataSource for the named entity using the main client.

Parameters

entity: string

Entity name

Return Type

DataSource bound to the entity

Usage

import { PrismaAdapter } from "database-plugin/src/index.ts";