drizzle-kit 0.20.3 → 0.20.4-c212886
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +36461 -36437
- package/drivers/index.d.ts +14 -0
- package/global.d.ts +1 -0
- package/package.json +1 -1
- package/payload.js +36761 -0
- package/payload.mjs +36809 -0
- package/serializer/mysqlImports.d.ts +5 -0
- package/serializer/mysqlSerializer.d.ts +2 -2
- package/serializer/sqliteImports.d.ts +4 -0
- package/utils-studio.js +0 -1
- package/utils-studio.mjs +3410 -0
- package/utils.d.ts +1 -15
- package/utils.js +3623 -52919
- package/utils.mjs +8055 -0
- package/cli/commands/pgPushUtils.d.ts +0 -14
- package/cli/selector-ui.d.ts +0 -13
- package/cli/utils.d.ts +0 -11
- package/cli/validations/mysql.d.ts +0 -365
- package/cli/validations/sqlite.d.ts +0 -220
- package/cli/validations/studio.d.ts +0 -593
- package/orm-extenstions/d1-driver/driver.d.ts +0 -8
- package/orm-extenstions/d1-driver/session.d.ts +0 -51
- package/orm-extenstions/d1-driver/wrangler-client.d.ts +0 -3
- package/serializer/studioUtils.d.ts +0 -53
package/utils.d.ts
CHANGED
@@ -1,8 +1,5 @@
|
|
1
|
-
import { Dialect } from "./schemaValidator";
|
1
|
+
import type { Dialect } from "./schemaValidator";
|
2
2
|
import { NamedWithSchema } from "./cli/commands/migrate";
|
3
|
-
import { PgDatabase } from "drizzle-orm/pg-core";
|
4
|
-
import { PgSchema as PgSchemaKit } from "./serializer/pgSchema";
|
5
|
-
import { DbConnection } from ".";
|
6
3
|
export declare const assertV1OutFolder: (out: string, dialect: Dialect | "{dialect}") => void;
|
7
4
|
export type Journal = {
|
8
5
|
version: string;
|
@@ -22,7 +19,6 @@ export declare const prepareOutFolder: (out: string, dialect: Dialect) => {
|
|
22
19
|
snapshots: string[];
|
23
20
|
journal: any;
|
24
21
|
};
|
25
|
-
export declare const mapValues: <IN, OUT>(obj: Record<string, IN>, map: (input: IN) => OUT) => Record<string, OUT>;
|
26
22
|
export declare const validateWithReport: (snapshots: string[], dialect: Dialect) => {
|
27
23
|
malformed: string[];
|
28
24
|
nonLatest: string[];
|
@@ -199,13 +195,3 @@ export declare const statementsForDiffs: (in1: any, in2: any) => Promise<{
|
|
199
195
|
columns: {};
|
200
196
|
} | undefined;
|
201
197
|
}>;
|
202
|
-
export type DrizzleSnapshotJSON = PgSchemaKit;
|
203
|
-
export declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => PgSchemaKit;
|
204
|
-
export declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
|
205
|
-
export declare const pushSchema: (imports: Record<string, unknown>, db: PgDatabase<any>) => Promise<{
|
206
|
-
hasDataLoss: boolean;
|
207
|
-
warnings: string[];
|
208
|
-
statementsToExecute: string[];
|
209
|
-
apply: () => Promise<void>;
|
210
|
-
}>;
|
211
|
-
export declare const prepareFrom: (connection: DbConnection) => Promise<Record<string, any>>;
|