Class: PrismaLoader
loaders/prisma/src.PrismaLoader
This loader loads a schema from a prisma.yml
file
Hierarchy
-
↳
PrismaLoader
Table of contents
Constructors
Methods
- buildHTTPExecutor
- buildSubscriptionExecutor
- buildWSExecutor
- buildWSLegacyExecutor
- canLoad
- canLoadSync
- getExecutor
- getExecutorAsync
- getExecutorSync
- getFetch
- getWebSocketImpl
- handleSDL
- load
- loadSync
Constructors
constructor
• new PrismaLoader()
Inherited from
Methods
buildHTTPExecutor
▸ buildHTTPExecutor(endpoint
, fetchFn
, options?
): SyncExecutor
<any
, ExecutionExtensions
>
Parameters
Name | Type |
---|---|
endpoint | string |
fetchFn | SyncFetchFn |
options? | LoadFromUrlOptions |
Returns
SyncExecutor
<any
, ExecutionExtensions
>
Inherited from
Defined in
packages/loaders/url/src/index.ts:125 (opens in a new tab)
▸ buildHTTPExecutor(endpoint
, fetchFn
, options?
): AsyncExecutor
<any
, ExecutionExtensions
>
Parameters
Name | Type |
---|---|
endpoint | string |
fetchFn | AsyncFetchFn |
options? | LoadFromUrlOptions |
Returns
AsyncExecutor
<any
, ExecutionExtensions
>
Inherited from
Defined in
packages/loaders/url/src/index.ts:131 (opens in a new tab)
buildSubscriptionExecutor
▸ buildSubscriptionExecutor(subscriptionsEndpoint
, fetch
, syncImport
, options?
): SyncExecutor
Parameters
Name | Type |
---|---|
subscriptionsEndpoint | string |
fetch | SyncFetchFn |
syncImport | SyncImportFn |
options? | LoadFromUrlOptions |
Returns
Inherited from
UrlLoader.buildSubscriptionExecutor
Defined in
packages/loaders/url/src/index.ts:237 (opens in a new tab)
▸ buildSubscriptionExecutor(subscriptionsEndpoint
, fetch
, asyncImport
, options?
): AsyncExecutor
Parameters
Name | Type |
---|---|
subscriptionsEndpoint | string |
fetch | AsyncFetchFn |
asyncImport | AsyncImportFn |
options? | LoadFromUrlOptions |
Returns
Inherited from
UrlLoader.buildSubscriptionExecutor
Defined in
packages/loaders/url/src/index.ts:244 (opens in a new tab)
buildWSExecutor
▸ buildWSExecutor(subscriptionsEndpoint
, webSocketImpl
, connectionParams?
): Executor
Parameters
Name | Type |
---|---|
subscriptionsEndpoint | string |
webSocketImpl | typeof WebSocket |
connectionParams? | Record <string , unknown > | () => Record <string , unknown > |
Returns
Inherited from
Defined in
packages/loaders/url/src/index.ts:154 (opens in a new tab)
buildWSLegacyExecutor
▸ buildWSLegacyExecutor(subscriptionsEndpoint
, WebSocketImpl
, options?
): Executor
Parameters
Name | Type |
---|---|
subscriptionsEndpoint | string |
WebSocketImpl | typeof WebSocket |
options? | LoadFromUrlOptions |
Returns
Inherited from
UrlLoader.buildWSLegacyExecutor
Defined in
packages/loaders/url/src/index.ts:170 (opens in a new tab)
canLoad
▸ canLoad(prismaConfigFilePath
, options
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
prismaConfigFilePath | string |
options | PrismaLoaderOptions |
Returns
Promise
<boolean
>
Defined in
packages/loaders/prisma/src/index.ts:27 (opens in a new tab)
canLoadSync
▸ canLoadSync(): boolean
Returns
boolean
Defined in
packages/loaders/prisma/src/index.ts:23 (opens in a new tab)
getExecutor
▸ getExecutor(endpoint
, asyncImport
, options?
): AsyncExecutor
Parameters
Name | Type |
---|---|
endpoint | string |
asyncImport | AsyncImportFn |
options? | Omit <LoadFromUrlOptions , "endpoint" > |
Returns
Inherited from
Defined in
packages/loaders/url/src/index.ts:279 (opens in a new tab)
▸ getExecutor(endpoint
, syncImport
, options?
): SyncExecutor
Parameters
Name | Type |
---|---|
endpoint | string |
syncImport | SyncImportFn |
options? | Omit <LoadFromUrlOptions , "endpoint" > |
Returns
Inherited from
Defined in
packages/loaders/url/src/index.ts:285 (opens in a new tab)
getExecutorAsync
▸ getExecutorAsync(endpoint
, options?
): AsyncExecutor
Parameters
Name | Type |
---|---|
endpoint | string |
options? | Omit <LoadFromUrlOptions , "endpoint" > |
Returns
Inherited from
Defined in
packages/loaders/url/src/index.ts:328 (opens in a new tab)
getExecutorSync
▸ getExecutorSync(endpoint
, options?
): SyncExecutor
Parameters
Name | Type |
---|---|
endpoint | string |
options? | Omit <LoadFromUrlOptions , "endpoint" > |
Returns
Inherited from
Defined in
packages/loaders/url/src/index.ts:332 (opens in a new tab)
getFetch
▸ getFetch(customFetch
, importFn
): AsyncFetchFn
| PromiseLike
<AsyncFetchFn
>
Parameters
Name | Type |
---|---|
customFetch | undefined | string | FetchFn |
importFn | AsyncImportFn |
Returns
AsyncFetchFn
| PromiseLike
<AsyncFetchFn
>
Inherited from
Defined in
packages/loaders/url/src/index.ts:183 (opens in a new tab)
▸ getFetch(customFetch
, importFn
): SyncFetchFn
Parameters
Name | Type |
---|---|
customFetch | undefined | string | FetchFn |
importFn | SyncImportFn |
Returns
Inherited from
Defined in
packages/loaders/url/src/index.ts:188 (opens in a new tab)
getWebSocketImpl
▸ getWebSocketImpl(importFn
, options?
): PromiseLike
<typeof WebSocket
>
Parameters
Name | Type |
---|---|
importFn | AsyncImportFn |
options? | LoadFromUrlOptions |
Returns
PromiseLike
<typeof WebSocket
>
Inherited from
Defined in
packages/loaders/url/src/index.ts:218 (opens in a new tab)
▸ getWebSocketImpl(importFn
, options?
): typeof WebSocket
Parameters
Name | Type |
---|---|
importFn | SyncImportFn |
options? | LoadFromUrlOptions |
Returns
typeof WebSocket
Inherited from
Defined in
packages/loaders/url/src/index.ts:220 (opens in a new tab)
handleSDL
▸ handleSDL(pointer
, fetch
, options
): Source
Parameters
Name | Type |
---|---|
pointer | string |
fetch | SyncFetchFn |
options | LoadFromUrlOptions |
Returns
Inherited from
Defined in
packages/loaders/url/src/index.ts:336 (opens in a new tab)
▸ handleSDL(pointer
, fetch
, options
): Promise
<Source
>
Parameters
Name | Type |
---|---|
pointer | string |
fetch | AsyncFetchFn |
options | LoadFromUrlOptions |
Returns
Promise
<Source
>
Inherited from
Defined in
packages/loaders/url/src/index.ts:337 (opens in a new tab)
load
▸ load(prismaConfigFilePath
, options
): Promise
<Source
[]>
Parameters
Name | Type |
---|---|
prismaConfigFilePath | string |
options | PrismaLoaderOptions |
Returns
Promise
<Source
[]>
Overrides
Defined in
packages/loaders/prisma/src/index.ts:40 (opens in a new tab)
loadSync
▸ loadSync(pointer
, options
): Source
[]
Parameters
Name | Type |
---|---|
pointer | string |
options | LoadFromUrlOptions |
Returns
Source
[]