drizzle-kit 0.20.16 → 0.20.17-14a4eaa
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +87694 -47618
- package/cli/commands/migrate.d.ts +123 -106
- package/cli/commands/mysqlIntrospect.d.ts +2 -71
- package/cli/commands/mysqlPushUtils.d.ts +4 -8
- package/cli/commands/pgIntrospect.d.ts +7 -71
- package/cli/commands/pgPushUtils.d.ts +3 -6
- package/cli/commands/sqliteIntrospect.d.ts +13 -17
- package/cli/commands/sqlitePushUtils.d.ts +4 -10
- package/cli/commands/utils.d.ts +39 -255
- package/cli/connections.d.ts +13 -0
- package/cli/utils.d.ts +13 -0
- package/cli/validations/cli.d.ts +169 -0
- package/cli/validations/common.d.ts +208 -7
- package/cli/validations/mysql.d.ts +6 -342
- package/cli/validations/outputs.d.ts +3 -2
- package/cli/validations/pg.d.ts +16 -408
- package/cli/validations/sqlite.d.ts +22 -0
- package/cli/views.d.ts +7 -5
- package/global.d.ts +3 -1
- package/index.d.mts +25 -63
- package/index.d.ts +25 -63
- package/index.js +1 -0
- package/introspect-sqlite.d.ts +2 -2
- package/jsonDiffer.d.ts +14 -29
- package/jsonStatements.d.ts +38 -11
- package/package.json +29 -51
- package/payload.d.mts +5 -5
- package/payload.d.ts +5 -5
- package/payload.js +16600 -33803
- package/payload.mjs +16695 -33909
- package/schemaValidator.d.ts +74 -71
- package/serializer/mysqlImports.d.ts +3 -7
- package/serializer/mysqlSchema.d.ts +1404 -587
- package/serializer/mysqlSerializer.d.ts +6 -6
- package/serializer/pgImports.d.ts +2 -2
- package/serializer/pgSchema.d.ts +1268 -809
- package/serializer/pgSerializer.d.ts +2 -2
- package/serializer/sqliteImports.d.ts +2 -4
- package/serializer/sqliteSchema.d.ts +144 -570
- package/serializer/sqliteSerializer.d.ts +4 -4
- package/serializer/studio.d.ts +51 -0
- package/snapshotsDiffer.d.ts +2333 -1057
- package/utils/words.d.ts +1 -1
- package/utils-studio.d.mts +0 -1
- package/utils-studio.d.ts +0 -1
- package/utils-studio.js +3818 -170
- package/utils-studio.mjs +3818 -173
- package/utils.d.ts +20 -141
- package/utils.js +3904 -7075
- package/utils.mjs +3977 -7148
- package/cli/commands/mysqlUp.d.ts +0 -4
- package/cli/commands/pgConnect.d.ts +0 -5
- package/cli/commands/pgUp.d.ts +0 -4
- package/cli/commands/sqliteUtils.d.ts +0 -162
- package/cli/commands/upFolders.d.ts +0 -27
- package/drivers/index.d.ts +0 -39
- package/introspect-mysql.d.ts +0 -9
- package/introspect-pg.d.ts +0 -12
@@ -1,7 +1,7 @@
|
|
1
1
|
import { AnyPgTable, PgEnum, PgSchema } from "drizzle-orm/pg-core";
|
2
2
|
import type { IntrospectStage, IntrospectStatus } from "../cli/views";
|
3
3
|
import type { PgSchemaInternal } from "../serializer/pgSchema";
|
4
|
-
import type {
|
4
|
+
import type { DB } from "../utils";
|
5
5
|
export declare const indexName: (tableName: string, columns: string[]) => string;
|
6
6
|
export declare const generatePgSnapshot: (tables: AnyPgTable[], enums: PgEnum<any>[], schemas: PgSchema[], schemaFilter?: string[]) => PgSchemaInternal;
|
7
|
-
export declare const fromDatabase: (db:
|
7
|
+
export declare const fromDatabase: (db: DB, tablesFilter: ((table: string) => boolean) | undefined, schemaFilters: string[], progressCallback?: (stage: IntrospectStage, count: number, status: IntrospectStatus) => void) => Promise<PgSchemaInternal>;
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
2
2
|
export declare const prepareFromExports: (exports: Record<string, unknown>) => {
|
3
|
-
tables: AnySQLiteTable
|
4
|
-
enums: any[];
|
3
|
+
tables: AnySQLiteTable[];
|
5
4
|
};
|
6
5
|
export declare const prepareFromSqliteImports: (imports: string[]) => Promise<{
|
7
|
-
tables: AnySQLiteTable
|
8
|
-
enums: any[];
|
6
|
+
tables: AnySQLiteTable[];
|
9
7
|
}>;
|