drizzle-kit 0.19.14-039355d → 0.20.0-13160ca
Sign up to get free protection for your applications and to get access to all the features.
- package/@types/utils.d.ts +12 -0
- package/cli/commands/migrate.d.ts +260 -0
- package/cli/commands/mysqlUp.d.ts +4 -0
- package/cli/commands/pgConnect.d.ts +5 -0
- package/cli/commands/pgIntrospect.d.ts +116 -0
- package/cli/commands/pgPushUtils.d.ts +14 -0
- package/cli/commands/pgUp.d.ts +4 -0
- package/cli/commands/sqliteIntrospect.d.ts +102 -0
- package/cli/commands/sqliteUtils.d.ts +162 -0
- package/cli/commands/upFolders.d.ts +27 -0
- package/cli/commands/utils.d.ts +265 -0
- package/cli/selector-ui.d.ts +13 -0
- package/cli/utils.d.ts +11 -0
- package/cli/validations/common.d.ts +13 -0
- package/cli/validations/mysql.d.ts +414 -0
- package/cli/validations/outputs.d.ts +40 -0
- package/cli/validations/pg.d.ts +438 -0
- package/cli/validations/sqlite.d.ts +220 -0
- package/cli/validations/studio.d.ts +548 -0
- package/cli/views.d.ts +61 -0
- package/drivers/index.d.ts +25 -0
- package/global.d.ts +2 -0
- package/index.cjs +26801 -34902
- package/index.d.ts +48 -0
- package/introspect.d.ts +4 -0
- package/jsonDiffer.d.ts +76 -0
- package/jsonStatements.d.ts +349 -0
- package/migrationPreparator.d.ts +35 -0
- package/orm-extenstions/d1-driver/driver.d.ts +8 -0
- package/orm-extenstions/d1-driver/session.d.ts +52 -0
- package/orm-extenstions/d1-driver/wrangler-client.d.ts +3 -0
- package/package.json +5 -4
- package/schemaValidator.d.ts +1306 -0
- package/serializer/index.d.ts +9 -0
- package/serializer/mysqlImports.d.ts +6 -0
- package/serializer/mysqlSchema.d.ts +3833 -0
- package/serializer/mysqlSerializer.d.ts +7 -0
- package/serializer/pgImports.d.ts +11 -0
- package/serializer/pgSchema.d.ts +4244 -0
- package/serializer/pgSerializer.d.ts +9 -0
- package/serializer/sqliteImports.d.ts +5 -0
- package/serializer/sqliteSchema.d.ts +3227 -0
- package/serializer/sqliteSerializer.d.ts +8 -0
- package/serializer/studioUtils.d.ts +39 -0
- package/snapshotsDiffer.d.ts +2660 -0
- package/sqlgenerator.d.ts +33 -0
- package/sqlite-introspect.d.ts +5 -0
- package/utils/words.d.ts +7 -0
- package/utils-studio.d.ts +5 -0
- package/utils-studio.js +3367 -0
- package/utils.d.ts +212 -0
- package/utils.js +52487 -11748
- package/loader.mjs +0 -57
@@ -0,0 +1,9 @@
|
|
1
|
+
import { AnyPgTable, PgEnum, PgSchema } from "drizzle-orm/pg-core";
|
2
|
+
import { Relations } from "drizzle-orm";
|
3
|
+
import type { IntrospectStage, IntrospectStatus } from "../cli/views";
|
4
|
+
import type { PgSchemaInternal } from "../serializer/pgSchema";
|
5
|
+
import type { DrizzleDbClient } from "../drivers";
|
6
|
+
export declare const indexName: (tableName: string, columns: string[]) => string;
|
7
|
+
export declare const generatePgSnapshot: (tables: AnyPgTable[], enums: PgEnum<any>[], schemas: PgSchema[], schemaFilter?: string[]) => PgSchemaInternal;
|
8
|
+
export declare const fromDatabase: (db: DrizzleDbClient, tablesFilter: ((table: string) => boolean) | undefined, schemaFilters: string[], progressCallback?: ((stage: IntrospectStage, count: number, status: IntrospectStatus) => void) | undefined) => Promise<PgSchemaInternal>;
|
9
|
+
export declare const toDrizzle: (schema: PgSchemaInternal, schemaName: string) => Record<string, AnyPgTable | Relations>;
|