drizzle-kit 0.19.13-3b2cf28 → 0.19.13-8d44e32
Sign up to get free protection for your applications and to get access to all the features.
- package/index.cjs +126 -8666
- package/package.json +1 -1
- package/utils.d.ts +8 -5
- package/utils.js +116 -8656
package/package.json
CHANGED
package/utils.d.ts
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
+
import { AnyMySqlTable } from "drizzle-orm/mysql-core";
|
2
|
+
import { Relations } from "drizzle-orm";
|
1
3
|
import { AnyPgTable, PgDatabase } from "drizzle-orm/pg-core";
|
2
4
|
import { DbConnection } from ".";
|
3
5
|
import { PgSchema } from "./serializer/pgSchema";
|
6
|
+
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
4
7
|
export type DrizzleSnapshotJSON = PgSchema;
|
5
8
|
export declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => DrizzleSnapshotJSON;
|
6
9
|
export declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
|
@@ -13,17 +16,17 @@ export declare const pushSchema: (imports: Record<string, unknown>, db: PgDataba
|
|
13
16
|
export declare const prepareFrom: (connection: DbConnection) => Promise<{
|
14
17
|
db: import("drizzle-orm/node-postgres").NodePgDatabase<Record<string, never>>;
|
15
18
|
type: "pg";
|
16
|
-
schema: Record<string, AnyPgTable<{}> |
|
19
|
+
schema: Record<string, AnyPgTable<{}> | Relations>;
|
17
20
|
} | {
|
18
21
|
db: import("drizzle-orm/mysql2").MySql2Database<Record<string, never>>;
|
19
|
-
type: "
|
20
|
-
schema: Record<string,
|
22
|
+
type: "mysql2";
|
23
|
+
schema: Record<string, AnyMySqlTable<{}> | Relations>;
|
21
24
|
} | {
|
22
25
|
db: import("drizzle-orm/better-sqlite3").BetterSQLite3Database<Record<string, never>>;
|
23
26
|
type: "sqlite";
|
24
|
-
schema: Record<string,
|
27
|
+
schema: Record<string, AnySQLiteTable<{}> | Relations>;
|
25
28
|
} | {
|
26
29
|
db: import("drizzle-orm/libsql").LibSQLDatabase<Record<string, never>>;
|
27
30
|
type: "sqlite";
|
28
|
-
schema: Record<string,
|
31
|
+
schema: Record<string, AnySQLiteTable<{}> | Relations>;
|
29
32
|
}>;
|