drizzle-kit 0.20.14-6ce9d1f → 0.20.14-730d763
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +20593 -20020
- package/cli/commands/migrate.d.ts +114 -90
- package/cli/commands/mysqlIntrospect.d.ts +8 -14
- package/cli/commands/pgIntrospect.d.ts +17 -10
- package/cli/commands/sqliteIntrospect.d.ts +9 -9
- package/cli/commands/utils.d.ts +8 -261
- package/cli/validations/cli.d.ts +107 -0
- package/cli/validations/common.d.ts +205 -7
- package/cli/validations/mysql.d.ts +6 -1
- package/cli/validations/pg.d.ts +6 -1
- package/cli/validations/sqlite.d.ts +165 -3
- package/cli/views.d.ts +6 -4
- package/global.d.ts +3 -1
- package/index.js +1 -0
- package/introspect-mysql.d.ts +1 -1
- package/introspect-pg.d.ts +5 -2
- package/introspect-sqlite.d.ts +1 -1
- package/jsonDiffer.d.ts +14 -29
- package/jsonStatements.d.ts +38 -11
- package/package.json +18 -50
- package/payload.js +8130 -8617
- package/payload.mjs +8252 -8745
- package/schemaValidator.d.ts +72 -69
- package/serializer/mysqlImports.d.ts +3 -7
- package/serializer/mysqlSchema.d.ts +1624 -493
- package/serializer/mysqlSerializer.d.ts +2 -2
- package/serializer/pgImports.d.ts +2 -2
- package/serializer/pgSchema.d.ts +1260 -801
- package/serializer/sqliteImports.d.ts +2 -4
- package/serializer/sqliteSchema.d.ts +144 -570
- package/serializer/sqliteSerializer.d.ts +1 -1
- package/snapshotsDiffer.d.ts +1908 -1050
- package/utils/words.d.ts +1 -1
- package/utils-studio.js +4144 -85
- package/utils-studio.mjs +4144 -85
- package/utils.d.ts +6 -140
- package/utils.js +3906 -7081
- package/utils.mjs +3983 -7158
- package/cli/commands/check.d.ts +0 -2
- package/cli/commands/drop.d.ts +0 -4
- package/cli/commands/mysqlUp.d.ts +0 -4
- package/cli/commands/pgUp.d.ts +0 -4
- package/cli/commands/push.d.ts +0 -6
- package/cli/commands/sqliteUp.d.ts +0 -2
- package/cli/commands/sqliteUtils.d.ts +0 -162
- package/cli/commands/upFolders.d.ts +0 -27
- package/cli/index.d.ts +0 -71
- package/cli/utils.d.ts +0 -12
- 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 -65
- package/utils/certs.d.ts +0 -4
@@ -1,7 +1,7 @@
|
|
1
|
-
import { AnyMySqlTable
|
1
|
+
import { AnyMySqlTable } from "drizzle-orm/mysql-core";
|
2
2
|
import { MySqlSchemaInternal } from "../serializer/mysqlSchema";
|
3
3
|
import { IntrospectStage, IntrospectStatus } from "../cli/views";
|
4
4
|
import { DrizzleDbClient } from "src/drivers";
|
5
5
|
export declare const indexName: (tableName: string, columns: string[]) => string;
|
6
|
-
export declare const generateMySqlSnapshot: (tables: AnyMySqlTable[]
|
6
|
+
export declare const generateMySqlSnapshot: (tables: AnyMySqlTable[]) => MySqlSchemaInternal;
|
7
7
|
export declare const fromDatabase: (db: DrizzleDbClient, inputSchema: string, tablesFilter?: (table: string) => boolean, progressCallback?: ((stage: IntrospectStage, count: number, status: IntrospectStatus) => void) | undefined) => Promise<MySqlSchemaInternal>;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { PgSchema, PgEnum, AnyPgTable } from "drizzle-orm/pg-core";
|
2
2
|
export declare const prepareFromExports: (exports: Record<string, unknown>) => {
|
3
|
-
tables: AnyPgTable
|
3
|
+
tables: AnyPgTable[];
|
4
4
|
enums: PgEnum<any>[];
|
5
5
|
schemas: PgSchema<string>[];
|
6
6
|
};
|
7
7
|
export declare const prepareFromPgImports: (imports: string[]) => Promise<{
|
8
|
-
tables: AnyPgTable
|
8
|
+
tables: AnyPgTable[];
|
9
9
|
enums: PgEnum<any>[];
|
10
10
|
schemas: PgSchema<string>[];
|
11
11
|
}>;
|