@prisma/migrate 6.7.0-dev.2 → 6.7.0-dev.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Migrate.js +5 -5
- package/dist/SchemaEngineCLI.js +4 -4
- package/dist/SchemaEngineWasm.js +3 -3
- package/dist/bin.js +25 -25
- package/dist/{chunk-U3PKVEAK.js → chunk-3LPJTPON.js} +5 -5
- package/dist/{chunk-O5YQGEQH.js → chunk-6FXCGDYG.js} +5 -5
- package/dist/{chunk-7HZE6BDG.js → chunk-7SHRWQOO.js} +6 -6
- package/dist/{chunk-OEWQACEH.js → chunk-AXR7LS2N.js} +531 -617
- package/dist/{chunk-OEFUBBD2.js → chunk-EVYAFMVA.js} +5 -5
- package/dist/{chunk-TUCW5C5C.js → chunk-GTNVXSIW.js} +5 -5
- package/dist/{chunk-I3LT2PO3.js → chunk-HAXSH7UY.js} +5 -5
- package/dist/{chunk-OULXWNUZ.js → chunk-HKEIYY25.js} +7 -30
- package/dist/{chunk-SQFNJXFA.js → chunk-K7LD5M6A.js} +5 -5
- package/dist/{chunk-NRSITJIH.js → chunk-NP7ZZIVZ.js} +5 -5
- package/dist/{chunk-JOAFF4FT.js → chunk-QRILN5QM.js} +7 -7
- package/dist/{chunk-QTM47CV3.js → chunk-R6N4ZN7K.js} +532 -1063
- package/dist/{chunk-6JKG6LGO.js → chunk-RAQT64TS.js} +7 -7
- package/dist/{chunk-ORYJRFI7.js → chunk-UYASBG5U.js} +5 -5
- package/dist/{chunk-6BNGZSAG.js → chunk-WFPTCAHP.js} +5 -5
- package/dist/commands/DbExecute.js +6 -6
- package/dist/commands/DbPull.js +6 -6
- package/dist/commands/DbPush.js +6 -6
- package/dist/commands/MigrateDeploy.js +6 -6
- package/dist/commands/MigrateDev.js +6 -6
- package/dist/commands/MigrateDiff.js +6 -6
- package/dist/commands/MigrateReset.js +6 -6
- package/dist/commands/MigrateResolve.js +6 -6
- package/dist/commands/MigrateStatus.js +6 -6
- package/dist/index.js +29 -29
- package/dist/utils/getDatabaseVersionSafe.js +6 -6
- package/dist/utils/introspectSql.js +6 -6
- package/dist/views/handleViewsIO.js +2 -2
- package/package.json +9 -10
- package/dist/chunk-FQ53XQJF.js +0 -11313
- package/dist/internals/src/Generator.d.ts +0 -42
- package/dist/internals/src/WasmPanicRegistry.d.ts +0 -5
- package/dist/internals/src/WasmSchemaEngineLoader.d.ts +0 -5
- package/dist/internals/src/cli/Help.d.ts +0 -11
- package/dist/internals/src/cli/checkUnsupportedDataProxy.d.ts +0 -18
- package/dist/internals/src/cli/checkUnsupportedSchemaEngineWasm.d.ts +0 -22
- package/dist/internals/src/cli/directoryConfig.d.ts +0 -7
- package/dist/internals/src/cli/getGeneratorSuccessMessage.d.ts +0 -7
- package/dist/internals/src/cli/getTypescriptVersion.d.ts +0 -1
- package/dist/internals/src/cli/hashes.d.ts +0 -10
- package/dist/internals/src/cli/schemaContext.d.ts +0 -59
- package/dist/internals/src/cli/types.d.ts +0 -47
- package/dist/internals/src/cli/utils.d.ts +0 -13
- package/dist/internals/src/client/getClientEngineType.d.ts +0 -8
- package/dist/internals/src/convertCredentials.d.ts +0 -10
- package/dist/internals/src/dotenvExpand.d.ts +0 -35
- package/dist/internals/src/engine-commands/errorHelpers.d.ts +0 -4
- package/dist/internals/src/engine-commands/formatSchema.d.ts +0 -22
- package/dist/internals/src/engine-commands/getConfig.d.ts +0 -31
- package/dist/internals/src/engine-commands/getDmmf.d.ts +0 -20
- package/dist/internals/src/engine-commands/getEngineVersion.d.ts +0 -4
- package/dist/internals/src/engine-commands/getEnginesMetaInfo.d.ts +0 -25
- package/dist/internals/src/engine-commands/index.d.ts +0 -10
- package/dist/internals/src/engine-commands/lintSchema.d.ts +0 -26
- package/dist/internals/src/engine-commands/mergeSchemas.d.ts +0 -12
- package/dist/internals/src/engine-commands/queryEngineCommons.d.ts +0 -31
- package/dist/internals/src/engine-commands/relativizePathInPSLError.d.ts +0 -1
- package/dist/internals/src/engine-commands/validate.d.ts +0 -12
- package/dist/internals/src/errorReporting.d.ts +0 -25
- package/dist/internals/src/get-generators/getGenerators.d.ts +0 -71
- package/dist/internals/src/get-generators/utils/binaryTypeToEngineType.d.ts +0 -3
- package/dist/internals/src/get-generators/utils/engineTypeToBinaryType.d.ts +0 -3
- package/dist/internals/src/get-generators/utils/fixBinaryTargets.d.ts +0 -3
- package/dist/internals/src/get-generators/utils/getBinaryPathsByVersion.d.ts +0 -3
- package/dist/internals/src/get-generators/utils/getEngineVersionForGenerator.d.ts +0 -2
- package/dist/internals/src/get-generators/utils/printGeneratorConfig.d.ts +0 -9
- package/dist/internals/src/getPackedPackage.d.ts +0 -1
- package/dist/internals/src/highlight/highlight.d.ts +0 -3
- package/dist/internals/src/highlight/languages/dml.d.ts +0 -2
- package/dist/internals/src/highlight/languages/sql.d.ts +0 -2
- package/dist/internals/src/highlight/prism.d.ts +0 -6
- package/dist/internals/src/highlight/theme.d.ts +0 -2
- package/dist/internals/src/highlight/types.d.ts +0 -35
- package/dist/internals/src/index.d.ts +0 -92
- package/dist/internals/src/logger.d.ts +0 -14
- package/dist/internals/src/migrateTypes.d.ts +0 -89
- package/dist/internals/src/panic.d.ts +0 -31
- package/dist/internals/src/resolveBinary.d.ts +0 -6
- package/dist/internals/src/resolveOutput.d.ts +0 -5
- package/dist/internals/src/resolvePkg.d.ts +0 -7
- package/dist/internals/src/schemaEngineCommands.d.ts +0 -37
- package/dist/internals/src/sendPanic.d.ts +0 -10
- package/dist/internals/src/tracing/types.d.ts +0 -55
- package/dist/internals/src/types.d.ts +0 -19
- package/dist/internals/src/utils/assertAlways.d.ts +0 -14
- package/dist/internals/src/utils/assertNever.d.ts +0 -27
- package/dist/internals/src/utils/binaryTargetRegex.d.ts +0 -8
- package/dist/internals/src/utils/byline.d.ts +0 -4
- package/dist/internals/src/utils/callOnce.d.ts +0 -13
- package/dist/internals/src/utils/canPrompt.d.ts +0 -1
- package/dist/internals/src/utils/chmodPlusX.d.ts +0 -1
- package/dist/internals/src/utils/cloudflareD1.d.ts +0 -5
- package/dist/internals/src/utils/drawBox.d.ts +0 -9
- package/dist/internals/src/utils/extractPreviewFeatures.d.ts +0 -2
- package/dist/internals/src/utils/formatTable.d.ts +0 -5
- package/dist/internals/src/utils/formatms.d.ts +0 -5
- package/dist/internals/src/utils/fs-functional.d.ts +0 -53
- package/dist/internals/src/utils/fs-utils.d.ts +0 -30
- package/dist/internals/src/utils/getCommandWithExecutor.d.ts +0 -1
- package/dist/internals/src/utils/getEnvPaths.d.ts +0 -14
- package/dist/internals/src/utils/getGitHubIssueUrl.d.ts +0 -18
- package/dist/internals/src/utils/getMigrateConfigDir.d.ts +0 -2
- package/dist/internals/src/utils/getVersionFromPackageJson.d.ts +0 -1
- package/dist/internals/src/utils/handleEngineLoadingErrors.d.ts +0 -8
- package/dist/internals/src/utils/handlePanic.d.ts +0 -11
- package/dist/internals/src/utils/hasOwnProperty.d.ts +0 -1
- package/dist/internals/src/utils/isCi.d.ts +0 -1
- package/dist/internals/src/utils/isCurrentBinInstalledGlobally.d.ts +0 -1
- package/dist/internals/src/utils/isInContainer.d.ts +0 -5
- package/dist/internals/src/utils/isInNpmLifecycleHook.d.ts +0 -4
- package/dist/internals/src/utils/isInteractive.d.ts +0 -6
- package/dist/internals/src/utils/isPromiseLike.d.ts +0 -1
- package/dist/internals/src/utils/isValidJsIdentifier.d.ts +0 -1
- package/dist/internals/src/utils/keyBy.d.ts +0 -9
- package/dist/internals/src/utils/link.d.ts +0 -1
- package/dist/internals/src/utils/load.d.ts +0 -6
- package/dist/internals/src/utils/loadEnvFile.d.ts +0 -10
- package/dist/internals/src/utils/mapKeys.d.ts +0 -1
- package/dist/internals/src/utils/mapObjectValues.d.ts +0 -1
- package/dist/internals/src/utils/maskSchema.d.ts +0 -4
- package/dist/internals/src/utils/max.d.ts +0 -11
- package/dist/internals/src/utils/maybeInGitHook.d.ts +0 -9
- package/dist/internals/src/utils/missingDatasource.d.ts +0 -1
- package/dist/internals/src/utils/missingGeneratorMessage.d.ts +0 -3
- package/dist/internals/src/utils/parseAWSNodejsRuntimeEnvVarVersion.d.ts +0 -1
- package/dist/internals/src/utils/parseEnvValue.d.ts +0 -17
- package/dist/internals/src/utils/path.d.ts +0 -14
- package/dist/internals/src/utils/pick.d.ts +0 -1
- package/dist/internals/src/utils/printConfigWarnings.d.ts +0 -1
- package/dist/internals/src/utils/prismaPostgres.d.ts +0 -3
- package/dist/internals/src/utils/serializeQueryEngineName.d.ts +0 -4
- package/dist/internals/src/utils/setClassName.d.ts +0 -9
- package/dist/internals/src/utils/toSchemasContainer.d.ts +0 -5
- package/dist/internals/src/utils/tryLoadEnvs.d.ts +0 -25
- package/dist/internals/src/utils/vercelPkgPathRegex.d.ts +0 -1
- package/dist/internals/src/warnOnce.d.ts +0 -1
- package/dist/internals/src/wasm.d.ts +0 -5
- package/dist/multipart-parser-ASKQAOL4-WZ47HU6G.js +0 -4696
- package/dist/multipart-parser-QCI3Y5IB.js +0 -4561
- package/dist/typescript-2LKASCMC.js +0 -205192
- package/dist/typescript-H3AVJ6KX.js +0 -205230
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create a directory if it doesn't exist yet.
|
|
3
|
-
* Note: { recursive: true } prevents EEEXIST error codes when the directory already exists.
|
|
4
|
-
* This function can potentially fail (e.g., if the user doesn't have permissions to create the directory).
|
|
5
|
-
*/
|
|
6
|
-
export declare function createDirIfNotExists(dir: string): Promise<string | undefined>;
|
|
7
|
-
/**
|
|
8
|
-
* Create a file with the given content.
|
|
9
|
-
* This function can potentially fail (e.g., if the user doesn't have permissions to create the file).
|
|
10
|
-
*/
|
|
11
|
-
export declare function writeFile({ path, content }: {
|
|
12
|
-
path: string;
|
|
13
|
-
content: string;
|
|
14
|
-
}): Promise<void>;
|
|
15
|
-
/**
|
|
16
|
-
* Retrieve any foolder in the given directory, at the top-level of depth.
|
|
17
|
-
*/
|
|
18
|
-
export declare function getTopLevelFoldersInDir(dir: string): Promise<string[]>;
|
|
19
|
-
/**
|
|
20
|
-
* Retrieve any folder nested into the given directory, at any level of depth.
|
|
21
|
-
*/
|
|
22
|
-
export declare function getNestedFoldersInDir(dir: string): Promise<string[]>;
|
|
23
|
-
export declare function getFilesInDir(dir: string, pattern?: string): Promise<string[]>;
|
|
24
|
-
/**
|
|
25
|
-
* Removes all empty directories in the given directory.
|
|
26
|
-
* If at the end of the recursion the given directory is empty, that
|
|
27
|
-
* directory is removed as well.
|
|
28
|
-
* Note: this function can potentially fail (e.g., if the user doesn't have permissions to remove a directory).
|
|
29
|
-
*/
|
|
30
|
-
export declare function removeEmptyDirs(dir: string): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getCommandWithExecutor(command: string): string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { EnvPaths } from '@prisma/generator';
|
|
2
|
-
/**
|
|
3
|
-
* 1. Search in project root
|
|
4
|
-
* 1. Schema
|
|
5
|
-
* 1. Search location from schema arg `--schema`
|
|
6
|
-
* 1. Search location from pkgJSON `"prisma": {"schema": "/path/to/schema.prisma"}`
|
|
7
|
-
* 1. Search default location `./prisma/.env`
|
|
8
|
-
* 1. Search cwd `./.env`
|
|
9
|
-
*
|
|
10
|
-
* @returns `{ rootEnvPath, schemaEnvPath }`
|
|
11
|
-
*/
|
|
12
|
-
export declare function getEnvPaths(schemaPath?: string | null, opts?: {
|
|
13
|
-
cwd: string;
|
|
14
|
-
}): Promise<EnvPaths>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare function getGitHubIssueUrl({ title, user, repo, template, body, }: {
|
|
2
|
-
title: string;
|
|
3
|
-
user?: string;
|
|
4
|
-
repo?: string;
|
|
5
|
-
template?: string;
|
|
6
|
-
body?: string;
|
|
7
|
-
}): string;
|
|
8
|
-
interface IssueOptions {
|
|
9
|
-
error: any;
|
|
10
|
-
cliVersion: string;
|
|
11
|
-
enginesVersion: string;
|
|
12
|
-
command: string;
|
|
13
|
-
prompt: Boolean;
|
|
14
|
-
title?: string;
|
|
15
|
-
reportId?: number;
|
|
16
|
-
}
|
|
17
|
-
export declare function wouldYouLikeToCreateANewIssue(options: IssueOptions): Promise<void>;
|
|
18
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const version: string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type PlatformInfo } from '@prisma/get-platform';
|
|
2
|
-
type HandleLibraryLoadingErrorsInput = {
|
|
3
|
-
e: Error;
|
|
4
|
-
platformInfo: PlatformInfo;
|
|
5
|
-
id: string;
|
|
6
|
-
};
|
|
7
|
-
export declare function handleLibraryLoadingErrors(args: HandleLibraryLoadingErrorsInput): string;
|
|
8
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { MigrateTypes } from '../migrateTypes';
|
|
2
|
-
import type { RustPanic } from '../panic';
|
|
3
|
-
type HandlePanic = {
|
|
4
|
-
error: RustPanic;
|
|
5
|
-
cliVersion: string;
|
|
6
|
-
enginesVersion: string;
|
|
7
|
-
command: string;
|
|
8
|
-
getDatabaseVersionSafe: (args: MigrateTypes.GetDatabaseVersionParams | undefined) => Promise<string | undefined>;
|
|
9
|
-
};
|
|
10
|
-
export declare function handlePanic(args: HandlePanic): Promise<void>;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function hasOwnProperty(object: object, key: PropertyKey): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isCi: () => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isCurrentBinInstalledGlobally(): 'npm' | false;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isPromiseLike(value: unknown): value is PromiseLike<unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isValidJsIdentifier(str: string): boolean;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface Dictionary<T> {
|
|
2
|
-
[key: string]: T;
|
|
3
|
-
}
|
|
4
|
-
/**
|
|
5
|
-
* Reduce over the keys of the iterable.
|
|
6
|
-
* @param collection Any array-like data structure.
|
|
7
|
-
* @param iteratee Callback to be called on every element.
|
|
8
|
-
*/
|
|
9
|
-
export declare const keyBy: <T>(collection: T[], iteratee: (value: T) => string) => Dictionary<T>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function link(url: any): string;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { PlatformInfo } from '@prisma/get-platform';
|
|
2
|
-
/**
|
|
3
|
-
* This is a wrapper around `require` for loading a Node-API library.
|
|
4
|
-
* This is to avoid eval and hide require away from bundlers
|
|
5
|
-
*/
|
|
6
|
-
export declare function loadLibrary<T>(id: string, platformInfo: PlatformInfo): T;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { PrismaConfigInternal } from '@prisma/config';
|
|
2
|
-
/**
|
|
3
|
-
* Read .env file only if next to schema.prisma
|
|
4
|
-
* .env found: print to console its relative path
|
|
5
|
-
*/
|
|
6
|
-
export declare function loadEnvFile({ schemaPath, config, printMessage, }: {
|
|
7
|
-
schemaPath?: string;
|
|
8
|
-
printMessage?: boolean;
|
|
9
|
-
config: PrismaConfigInternal;
|
|
10
|
-
}): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function mapKeys<T extends object>(obj: T, mapper: (key: keyof T) => string): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function mapObjectValues<K extends PropertyKey, T, U>(object: Record<K, T>, mapper: (value: T, key: K) => U): Record<K, U>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { MultipleSchemas } from './schemaFileInput';
|
|
2
|
-
export declare function maskSchemas(schemas: MultipleSchemas): MultipleSchemas;
|
|
3
|
-
export declare function maskSchema(schema: string): string;
|
|
4
|
-
export declare function mapScalarValues(obj: any, mapper: (value: any) => any): {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Accepts an array and comparator function (similar to Array.prototype.sort)
|
|
3
|
-
* and returns max element of that array, ordered with that comparator.
|
|
4
|
-
* Functionally, equivalent of items.sort(comparator).at(-1), but performed non-destructively
|
|
5
|
-
* in O(n)
|
|
6
|
-
* @param items
|
|
7
|
-
* @param comparator callback specifying the relative order of two items. See `Array.prototype.sort`
|
|
8
|
-
* @returns
|
|
9
|
-
*/
|
|
10
|
-
export declare function maxWithComparator<T>(items: T[], comparator: (a: T, b: T) => number): T | undefined;
|
|
11
|
-
export declare function maxBy<T>(items: T[], callback: (item: T) => number): T | undefined;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks if we may be running inside a git hook (such as pre-commit).
|
|
3
|
-
*
|
|
4
|
-
* It can give false positives in edge cases, if user has `GIT_EXEC_PATH`,
|
|
5
|
-
* `GIT_DIR`, `GIT_INDEX_FILE`, or `GIT_PREFIX` environment variable set in
|
|
6
|
-
* their shell before running the git command (which is rare but possible).
|
|
7
|
-
* This function should only be used where such false positives are acceptable.
|
|
8
|
-
*/
|
|
9
|
-
export declare function maybeInGitHook(): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const missingDatasource: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function parseAWSNodejsRuntimeEnvVarVersion(): number | null;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { BinaryTargetsEnvValue, EnvValue } from '@prisma/generator';
|
|
2
|
-
/**
|
|
3
|
-
* Parses an EnvValue (example: Provider) and return the string value
|
|
4
|
-
*
|
|
5
|
-
* - If there is no env var just return the value
|
|
6
|
-
* - If there is an env var it will be resolve and returned.
|
|
7
|
-
* - If there is an env var is present but can't be resolved an error will be thrown
|
|
8
|
-
*/
|
|
9
|
-
export declare function parseEnvValue(object: EnvValue): string;
|
|
10
|
-
/**
|
|
11
|
-
* Parses the BinaryTargetsEnvValue and return the string value
|
|
12
|
-
*
|
|
13
|
-
* - If there is no env var just return the value
|
|
14
|
-
* - If there is an env var it will be resolve and returned.
|
|
15
|
-
* - If there is an env var is present but can't be resolved an error will be thrown
|
|
16
|
-
*/
|
|
17
|
-
export declare function parseBinaryTargetsEnvValue(object: BinaryTargetsEnvValue): string[] | string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Normalize `filePath` to use forward slashes as a separator. `filePath` is
|
|
3
|
-
* treated as a path specific to the current platform, so backslashes will only
|
|
4
|
-
* be replaced with forward slashes on Windows. On other platforms, where a
|
|
5
|
-
* backslash is a valid filename character, it will be treated as such and will
|
|
6
|
-
* not be replaced.
|
|
7
|
-
*/
|
|
8
|
-
export declare function pathToPosix(filePath: string): string;
|
|
9
|
-
/**
|
|
10
|
-
* Returns the longest common path ancestor of the two paths (which may also be equal to one or both of them).
|
|
11
|
-
* If they don't share a common ancestor (which may be the case on Windows if both paths are on different disks),
|
|
12
|
-
* returns `undefined`.
|
|
13
|
-
*/
|
|
14
|
-
export declare function longestCommonPathPrefix(pathA: string, pathB: string): string | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function pick<T extends object, U extends keyof T>(obj: T, keys: U[]): Pick<T, U>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function printConfigWarnings(warnings: string[]): void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Used for preserving class names for minified class instances
|
|
3
|
-
* Useful for error objects and other classes where public name
|
|
4
|
-
* actually matters
|
|
5
|
-
*
|
|
6
|
-
* @param classObject
|
|
7
|
-
* @param name
|
|
8
|
-
*/
|
|
9
|
-
export declare function setClassName(classObject: Function, name: string): void;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { SchemaContext } from '../cli/schemaContext';
|
|
2
|
-
import { MigrateTypes } from '../migrateTypes';
|
|
3
|
-
import { MultipleSchemas } from './schemaFileInput';
|
|
4
|
-
export declare function toSchemasContainer(schemas: MultipleSchemas): MigrateTypes.SchemasContainer;
|
|
5
|
-
export declare function toSchemasWithConfigDir(schemaContext: SchemaContext): MigrateTypes.SchemasWithConfigDir;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import dotenv from 'dotenv';
|
|
2
|
-
type DotenvResult = dotenv.DotenvConfigOutput & {
|
|
3
|
-
ignoreProcessEnv?: boolean | undefined;
|
|
4
|
-
};
|
|
5
|
-
interface DotenvLoadEnvResult {
|
|
6
|
-
message: string;
|
|
7
|
-
path: string;
|
|
8
|
-
dotenvResult: DotenvResult;
|
|
9
|
-
}
|
|
10
|
-
export type LoadedEnv = {
|
|
11
|
-
message?: string;
|
|
12
|
-
parsed: {
|
|
13
|
-
[x: string]: string;
|
|
14
|
-
};
|
|
15
|
-
} | undefined;
|
|
16
|
-
export declare function tryLoadEnvs({ rootEnvPath, schemaEnvPath, }: {
|
|
17
|
-
rootEnvPath: string | null | undefined;
|
|
18
|
-
schemaEnvPath: string | null | undefined;
|
|
19
|
-
}, opts?: {
|
|
20
|
-
conflictCheck: 'warn' | 'error' | 'none';
|
|
21
|
-
}): LoadedEnv;
|
|
22
|
-
export declare function loadEnv(envPath: string | null | undefined): DotenvLoadEnvResult | null;
|
|
23
|
-
export declare function pathsEqual(path1: string | null | undefined, path2: string | null | undefined): boolean | "" | null | undefined;
|
|
24
|
-
export declare function exists(p: string | null | undefined): p is string;
|
|
25
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const vercelPkgPathRegex: RegExp;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const warnOnce: (key: string, message: string, ...args: unknown[]) => void;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import prismaSchemaWasm from '@prisma/prisma-schema-wasm';
|
|
2
|
-
import type { SchemaEngine as SchemaEngineWasm } from '@prisma/schema-engine-wasm';
|
|
3
|
-
export { prismaSchemaWasm, SchemaEngineWasm };
|
|
4
|
-
export declare const prismaSchemaWasmVersion: string;
|
|
5
|
-
export declare const schemaEngineWasmVersion: string;
|