drizzle-kit 0.19.13-e99bac1 → 0.19.13
Sign up to get free protection for your applications and to get access to all the features.
- package/index.cjs +30505 -21937
- package/index.d.ts +14 -15
- package/package.json +2 -3
- package/utils.js +11760 -35976
- package/@types/utils.d.ts +0 -12
- package/cli/commands/migrate.d.ts +0 -141
- package/cli/commands/mysqlUp.d.ts +0 -4
- package/cli/commands/pgIntrospect.d.ts +0 -118
- package/cli/commands/pgPushUtils.d.ts +0 -14
- package/cli/commands/pgUp.d.ts +0 -4
- package/cli/commands/sqliteIntrospect.d.ts +0 -102
- package/cli/commands/sqliteUtils.d.ts +0 -162
- package/cli/commands/upFolders.d.ts +0 -27
- package/cli/commands/utils.d.ts +0 -265
- package/cli/selector-ui.d.ts +0 -13
- package/cli/validations/common.d.ts +0 -13
- package/cli/validations/mysql.d.ts +0 -414
- package/cli/validations/outputs.d.ts +0 -39
- package/cli/validations/pg.d.ts +0 -438
- package/cli/validations/sqlite.d.ts +0 -220
- package/cli/validations/studio.d.ts +0 -469
- package/cli/views.d.ts +0 -61
- package/drivers/index.d.ts +0 -26
- package/global.d.ts +0 -2
- package/introspect.d.ts +0 -4
- package/jsonDiffer.d.ts +0 -76
- package/jsonStatements.d.ts +0 -349
- package/migrationPreparator.d.ts +0 -35
- package/schemaValidator.d.ts +0 -1236
- package/serializer/index.d.ts +0 -9
- package/serializer/mysqlImports.d.ts +0 -6
- package/serializer/mysqlSchema.d.ts +0 -3833
- package/serializer/mysqlSerializer.d.ts +0 -7
- package/serializer/pgImports.d.ts +0 -11
- package/serializer/pgSchema.d.ts +0 -4000
- package/serializer/pgSerializer.d.ts +0 -7
- package/serializer/sqliteImports.d.ts +0 -5
- package/serializer/sqliteSchema.d.ts +0 -3162
- package/serializer/sqliteSerializer.d.ts +0 -8
- package/serializer/studioUtils.d.ts +0 -31
- package/snapshotsDiffer.d.ts +0 -2660
- package/sqlgenerator.d.ts +0 -33
- package/sqlite-introspect.d.ts +0 -5
- package/utils/words.d.ts +0 -7
- package/utils.d.ts +0 -32
- package/utilsR.d.ts +0 -209
@@ -1,8 +0,0 @@
|
|
1
|
-
import { SQLiteSchemaInternal } from "src/serializer/sqliteSchema";
|
2
|
-
import { Relations } from "drizzle-orm";
|
3
|
-
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
4
|
-
import { IntrospectStage, IntrospectStatus } from "src/cli/views";
|
5
|
-
import { DrizzleDbClient } from "src/drivers";
|
6
|
-
export declare const generateSqliteSnapshot: (tables: AnySQLiteTable[], enums: any[]) => SQLiteSchemaInternal;
|
7
|
-
export declare const fromDatabase: (db: DrizzleDbClient, tablesFilter?: (table: string) => boolean, progressCallback?: ((stage: IntrospectStage, count: number, status: IntrospectStatus) => void) | undefined) => Promise<SQLiteSchemaInternal>;
|
8
|
-
export declare const toDrizzle: (schema: SQLiteSchemaInternal) => Record<string, AnySQLiteTable | Relations>;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import { Relations } from "drizzle-orm";
|
2
|
-
import { AnyMySqlTable } from "drizzle-orm/mysql-core";
|
3
|
-
import { AnyPgTable } from "drizzle-orm/pg-core";
|
4
|
-
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
5
|
-
import { StudioConfigConnections } from "src/cli/validations/studio";
|
6
|
-
export declare const prepareModels: (path: string | string[]) => Promise<{
|
7
|
-
pgSchema: Record<string, AnyPgTable<{}> | Relations<string, Record<string, import("drizzle-orm/query-promise.d-0dd411fc").a<string>>>>;
|
8
|
-
mysqlSchema: Record<string, AnyMySqlTable<{}> | Relations<string, Record<string, import("drizzle-orm/query-promise.d-0dd411fc").a<string>>>>;
|
9
|
-
sqliteSchema: Record<string, AnySQLiteTable<{}> | Relations<string, Record<string, import("drizzle-orm/query-promise.d-0dd411fc").a<string>>>>;
|
10
|
-
}>;
|
11
|
-
export declare const drizzleDb: (drizzleConfig: StudioConfigConnections, models: {
|
12
|
-
pgSchema?: Record<string, AnyPgTable | Relations>;
|
13
|
-
mysqlSchema?: Record<string, AnyMySqlTable | Relations>;
|
14
|
-
sqliteSchema?: Record<string, AnySQLiteTable | Relations>;
|
15
|
-
}, logger: boolean) => Promise<{
|
16
|
-
db: import("drizzle-orm/node-postgres").NodePgDatabase<Record<string, never>>;
|
17
|
-
type: "pg";
|
18
|
-
schema: Record<string, AnyPgTable<{}> | Relations<string, Record<string, import("drizzle-orm/query-promise.d-0dd411fc").a<string>>>> | undefined;
|
19
|
-
} | {
|
20
|
-
db: import("drizzle-orm/mysql2").MySql2Database<Record<string, never>>;
|
21
|
-
type: "mysql";
|
22
|
-
schema: Record<string, AnyMySqlTable<{}> | Relations<string, Record<string, import("drizzle-orm/query-promise.d-0dd411fc").a<string>>>> | undefined;
|
23
|
-
} | {
|
24
|
-
db: import("drizzle-orm/driver.d-1c9fcc75").B<Record<string, never>>;
|
25
|
-
type: "sqlite";
|
26
|
-
schema: Record<string, AnySQLiteTable<{}> | Relations<string, Record<string, import("drizzle-orm/query-promise.d-0dd411fc").a<string>>>> | undefined;
|
27
|
-
} | {
|
28
|
-
db: import("drizzle-orm/driver.d-f4e534d3").L<Record<string, never>>;
|
29
|
-
type: "sqlite";
|
30
|
-
schema: Record<string, AnySQLiteTable<{}> | Relations<string, Record<string, import("drizzle-orm/query-promise.d-0dd411fc").a<string>>>> | undefined;
|
31
|
-
}>;
|