drizzle-kit 0.20.14-5df59eb → 0.20.14-95be75d
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +38018 -38051
- package/cli/commands/mysqlIntrospect.d.ts +3 -3
- package/cli/commands/mysqlPushUtils.d.ts +2 -2
- package/drivers/index.d.ts +0 -14
- package/global.d.ts +0 -1
- package/package.json +3 -15
- package/serializer/mysqlImports.d.ts +0 -5
- package/serializer/mysqlSerializer.d.ts +2 -2
- package/serializer/sqliteImports.d.ts +0 -4
- package/utils-studio.js +1 -1
- package/utils-studio.mjs +1 -1
- package/utils.d.ts +15 -1
- package/utils.js +55054 -3632
- package/payload.d.mts +0 -33
- package/payload.d.ts +0 -33
- package/payload.js +0 -37000
- package/payload.mjs +0 -37019
- package/utils.mjs +0 -8076
package/payload.d.mts
DELETED
@@ -1,33 +0,0 @@
|
|
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
|
-
}>;
|
package/payload.d.ts
DELETED
@@ -1,33 +0,0 @@
|
|
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
|
-
}>;
|