drizzle-kit 0.20.14-22fcd3b → 0.20.14-6ce9d1f
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +41476 -41661
- package/cli/commands/check.d.ts +2 -0
- package/cli/commands/drop.d.ts +4 -0
- package/cli/commands/migrate.d.ts +7 -7
- package/cli/commands/mysqlIntrospect.d.ts +119 -0
- package/cli/commands/mysqlPushUtils.d.ts +18 -0
- package/cli/commands/mysqlUp.d.ts +1 -1
- package/cli/commands/pgConnect.d.ts +1 -1
- package/cli/commands/pgIntrospect.d.ts +1 -1
- package/cli/commands/pgPushUtils.d.ts +2 -2
- package/cli/commands/pgUp.d.ts +1 -1
- package/cli/commands/push.d.ts +6 -0
- package/cli/commands/sqlitePushUtils.d.ts +21 -0
- package/cli/commands/sqliteUp.d.ts +2 -0
- package/cli/commands/upFolders.d.ts +1 -1
- package/cli/commands/utils.d.ts +13 -4
- package/cli/index.d.ts +71 -0
- package/cli/validations/common.d.ts +1 -1
- package/cli/validations/studio.d.ts +16 -16
- package/cli/views.d.ts +1 -1
- package/drivers/index.d.ts +14 -0
- package/global.d.ts +1 -0
- package/index.d.mts +8 -6
- package/index.d.ts +8 -6
- package/introspect-mysql.d.ts +9 -0
- package/package.json +15 -3
- package/payload.d.mts +33 -0
- package/payload.d.ts +33 -0
- package/payload.js +37000 -0
- package/payload.mjs +37019 -0
- package/schemaValidator.d.ts +1 -1
- package/serializer/mysqlImports.d.ts +5 -0
- package/serializer/mysqlSerializer.d.ts +4 -4
- package/serializer/sqliteImports.d.ts +4 -0
- package/serializer/sqliteSerializer.d.ts +2 -2
- package/serializer/studioUtils.d.ts +7 -7
- package/utils/certs.d.ts +4 -0
- package/utils-studio.js +12 -7
- package/utils-studio.mjs +12 -7
- package/utils.d.ts +1 -15
- package/utils.js +3629 -54850
- package/utils.mjs +8076 -0
package/payload.d.ts
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
import { PgDatabase } from "drizzle-orm/pg-core";
|
2
|
+
import { PgSchema as PgSchemaKit } from "./serializer/pgSchema";
|
3
|
+
import { SQLiteSchema as SQLiteSchemaKit } from "./serializer/sqliteSchema";
|
4
|
+
import { MySqlSchema as MySQLSchemaKit } from "./serializer/mysqlSchema";
|
5
|
+
import { MySql2Database } from "drizzle-orm/mysql2";
|
6
|
+
import { BetterSQLite3Database } from "drizzle-orm/better-sqlite3";
|
7
|
+
export type DrizzleSnapshotJSON = PgSchemaKit;
|
8
|
+
export type DrizzleSQLiteSnapshotJSON = SQLiteSchemaKit;
|
9
|
+
export type DrizzleMySQLSnapshotJSON = MySQLSchemaKit;
|
10
|
+
export declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => PgSchemaKit;
|
11
|
+
export declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
|
12
|
+
export declare const pushSchema: (imports: Record<string, unknown>, db: PgDatabase<any>) => Promise<{
|
13
|
+
hasDataLoss: boolean;
|
14
|
+
warnings: string[];
|
15
|
+
statementsToExecute: string[];
|
16
|
+
apply: () => Promise<void>;
|
17
|
+
}>;
|
18
|
+
export declare const generateSQLiteDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => Promise<SQLiteSchemaKit>;
|
19
|
+
export declare const generateSQLiteMigration: (prev: DrizzleSQLiteSnapshotJSON, cur: DrizzleSQLiteSnapshotJSON) => Promise<string[]>;
|
20
|
+
export declare const pushSQLiteSchema: (imports: Record<string, unknown>, db: BetterSQLite3Database<any>) => Promise<{
|
21
|
+
hasDataLoss: boolean;
|
22
|
+
warnings: string[];
|
23
|
+
statementsToExecute: string[];
|
24
|
+
apply: () => Promise<void>;
|
25
|
+
}>;
|
26
|
+
export declare const generateMySQLDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => Promise<MySQLSchemaKit>;
|
27
|
+
export declare const generateMySQLMigration: (prev: DrizzleMySQLSnapshotJSON, cur: DrizzleMySQLSnapshotJSON) => Promise<string[]>;
|
28
|
+
export declare const pushMySQLSchema: (imports: Record<string, unknown>, db: MySql2Database<any>, databaseName: string) => Promise<{
|
29
|
+
hasDataLoss: boolean;
|
30
|
+
warnings: string[];
|
31
|
+
statementsToExecute: string[];
|
32
|
+
apply: () => Promise<void>;
|
33
|
+
}>;
|