DisBot
    Preparing search index...

    Type Alias GetPrismaClientConfig

    Config that is stored into the generated client. When the generated client is loaded, this same config is passed to getPrismaClient which creates a closure with that config around a non-instantiated [[PrismaClient]].

    type GetPrismaClientConfig = {
        activeProvider: ActiveConnectorType;
        ciName?: string;
        clientVersion: string;
        compilerWasm?: CompilerWasmLoadingConfig;
        copyEngine?: boolean;
        datasourceNames: string[];
        dirname: string;
        engineVersion: string;
        engineWasm?: EngineWasmLoadingConfig;
        generator?: GeneratorConfig;
        injectableEdgeEnv?: () => LoadedEnv;
        inlineDatasources: { [name in string]: { url: EnvValue } };
        inlineSchema: string;
        inlineSchemaHash: string;
        isBundled?: boolean;
        postinstall?: boolean;
        relativeEnvPaths?: {
            rootEnvPath?: string | null;
            schemaEnvPath?: string | null;
        };
        relativePath: string;
        runtimeDataModel: RuntimeDataModel;
    }
    Index

    Properties

    activeProvider: ActiveConnectorType
    ciName?: string

    Information about the CI where the Prisma Client has been generated. The name of the CI environment is stored at generation time because CI information is not always available at runtime. Moreover, the edge client has no notion of environment variables, so this works around that.

    used to error for Vercel/Netlify for schema caching issues

    clientVersion: string
    compilerWasm?: CompilerWasmLoadingConfig
    copyEngine?: boolean

    A boolean that is false when the client was generated with --no-engine. At runtime, this means the client will be bound to be using the Data Proxy.

    datasourceNames: string[]
    dirname: string
    engineVersion: string
    engineWasm?: EngineWasmLoadingConfig

    Optional wasm loading configuration

    generator?: GeneratorConfig
    injectableEdgeEnv?: () => LoadedEnv

    A special env object just for the data proxy edge runtime. Allows bundlers to inject their own env variables (Vercel). Allows platforms to declare global variables as env (Workers).

    only used for the purpose of data proxy

    inlineDatasources: { [name in string]: { url: EnvValue } }

    The contents of the datasource url saved in a string. This can either be an env var name or connection string. It is needed by the client to connect to the Data Proxy.

    only used for the purpose of data proxy

    inlineSchema: string

    The contents of the schema encoded into a string

    only used for the purpose of data proxy

    inlineSchemaHash: string

    The string hash that was produced for a given schema

    only used for the purpose of data proxy

    isBundled?: boolean

    Information about whether we have not found a schema.prisma file in the default location, and that we fell back to finding the schema.prisma file in the current working directory. This usually means it has been bundled.

    postinstall?: boolean

    A marker to indicate that the client was not generated via prisma generate but was generated via generate --postinstall script instead.

    used to error for Vercel/Netlify for schema caching issues

    relativeEnvPaths?: {
        rootEnvPath?: string | null;
        schemaEnvPath?: string | null;
    }
    relativePath: string
    runtimeDataModel: RuntimeDataModel