drizzle-kit 0.20.14-1ebe0ff → 0.20.14-1f99bf7
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +46606 -46728
- package/cli/commands/migrate.d.ts +24 -24
- package/cli/commands/mysqlIntrospect.d.ts +119 -0
- package/cli/commands/mysqlPushUtils.d.ts +18 -0
- package/cli/commands/mysqlUp.d.ts +2 -2
- package/cli/commands/pgConnect.d.ts +1 -1
- package/cli/commands/pgIntrospect.d.ts +9 -9
- package/cli/commands/pgPushUtils.d.ts +2 -2
- package/cli/commands/pgUp.d.ts +2 -2
- package/cli/commands/sqliteIntrospect.d.ts +9 -9
- package/cli/commands/sqlitePushUtils.d.ts +21 -0
- package/cli/commands/upFolders.d.ts +1 -1
- package/cli/commands/utils.d.ts +14 -259
- package/cli/validations/cli.d.ts +104 -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 +1 -1
- package/drivers/index.d.ts +14 -0
- package/global.d.ts +2 -1
- package/index.d.mts +8 -6
- package/index.d.ts +8 -6
- package/index.js +1 -0
- package/introspect-mysql.d.ts +9 -0
- package/introspect-pg.d.ts +1 -1
- package/introspect-sqlite.d.ts +1 -1
- package/jsonStatements.d.ts +1 -1
- package/package.json +17 -4
- package/payload.d.mts +33 -0
- package/payload.d.ts +33 -0
- package/payload.js +37106 -0
- package/payload.mjs +37124 -0
- package/schemaValidator.d.ts +40 -40
- package/serializer/mysqlImports.d.ts +5 -0
- package/serializer/mysqlSchema.d.ts +1991 -753
- package/serializer/mysqlSerializer.d.ts +4 -4
- package/serializer/pgSchema.d.ts +1113 -788
- package/serializer/sqliteImports.d.ts +4 -0
- package/serializer/sqliteSchema.d.ts +144 -570
- package/serializer/sqliteSerializer.d.ts +2 -2
- package/snapshotsDiffer.d.ts +24 -20
- package/utils-studio.js +21 -8
- package/utils-studio.mjs +20 -8
- package/utils.d.ts +13 -27
- package/utils.js +3080 -54201
- package/utils.mjs +8175 -0
- package/cli/commands/sqliteUtils.d.ts +0 -162
- 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
@@ -1,7 +1,7 @@
|
|
1
1
|
import { AnyMySqlTable, MySqlSchema } from "drizzle-orm/mysql-core";
|
2
|
-
import { MySqlSchemaInternal } from "
|
3
|
-
import {
|
4
|
-
import {
|
2
|
+
import { MySqlSchemaInternal } from "../serializer/mysqlSchema";
|
3
|
+
import { IntrospectStage, IntrospectStatus } from "../cli/views";
|
4
|
+
import { DrizzleDbClient } from "src/drivers";
|
5
5
|
export declare const indexName: (tableName: string, columns: string[]) => string;
|
6
6
|
export declare const generateMySqlSnapshot: (tables: AnyMySqlTable[], enums: any[], mysqlSchemas: MySqlSchema[]) => MySqlSchemaInternal;
|
7
|
-
export declare const fromDatabase: (db:
|
7
|
+
export declare const fromDatabase: (db: DrizzleDbClient, inputSchema: string, tablesFilter?: (table: string) => boolean, progressCallback?: ((stage: IntrospectStage, count: number, status: IntrospectStatus) => void) | undefined) => Promise<MySqlSchemaInternal>;
|