-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add possibility to pass in a prisma client
rm
- Loading branch information
1 parent
19d623d
commit 2d12d6b
Showing
3 changed files
with
29 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,20 +139,32 @@ type PrismaLogDefinition = { | |
emit: 'stdout' | 'event'; | ||
}; | ||
|
||
type PrismaDatasource = { | ||
url?: string; | ||
}; | ||
|
||
type PrismaDatasources = { | ||
sqlite?: PrismaDatasource; | ||
}; | ||
|
||
type PrismaClientConfig = { | ||
datasources?: PrismaDatasources; | ||
log?: (PrismaLogLevel | PrismaLogDefinition)[]; | ||
}; | ||
|
||
export type DatabaseConfig<TypeInfo extends BaseKeystoneTypeInfo> = { | ||
provider: DatabaseProvider; | ||
url: string; | ||
|
||
shadowDatabaseUrl?: string; | ||
onConnect?: (args: KeystoneContext<TypeInfo>) => Promise<void>; | ||
enableLogging?: boolean | PrismaLogLevel | Array<PrismaLogLevel | PrismaLogDefinition>; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mmachatschek
Author
Contributor
|
||
enableLogging?: boolean | Array<PrismaLogLevel | PrismaLogDefinition>; | ||
idField?: IdFieldConfig; | ||
prismaClientPath?: string; | ||
prismaSchemaPath?: string; | ||
|
||
extendPrismaSchema?: (schema: string) => string; | ||
|
||
prismaAdapter?: () => any; | ||
prismaClient?: (config: PrismaClientConfig) => any; | ||
|
||
/** @deprecated */ | ||
useMigrations?: boolean; | ||
|
I assume this was broken/wrong?