drizzle-kit 0.20.17-cab52ad → 0.20.17-d71f2ee
Sign up to get free protection for your applications and to get access to all the features.
- package/@types/utils.d.ts +13 -0
- package/bin.cjs +372 -7335
- package/cli/commands/migrate.d.ts +287 -0
- package/cli/commands/mysqlIntrospect.d.ts +50 -0
- package/cli/commands/mysqlPushUtils.d.ts +14 -0
- package/cli/commands/pgIntrospect.d.ts +59 -0
- package/cli/commands/pgPushUtils.d.ts +11 -0
- package/cli/commands/sqliteIntrospect.d.ts +103 -0
- package/cli/commands/sqlitePushUtils.d.ts +15 -0
- package/cli/commands/utils.d.ts +180 -0
- package/cli/connections.d.ts +18 -0
- package/cli/selector-ui.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 +214 -0
- package/cli/validations/mysql.d.ts +29 -0
- package/cli/validations/outputs.d.ts +41 -0
- package/cli/validations/pg.d.ts +46 -0
- package/cli/validations/sqlite.d.ts +22 -0
- package/cli/validations/studio.d.ts +92 -0
- package/cli/views.d.ts +70 -0
- package/global.d.ts +6 -0
- package/index.d.mts +6 -14
- package/index.d.ts +6 -14
- package/introspect-sqlite.d.ts +10 -0
- package/jsonDiffer.d.ts +61 -0
- package/jsonStatements.d.ts +376 -0
- package/migrationPreparator.d.ts +35 -0
- package/package.json +16 -5
- package/payload.d.mts +18 -987
- package/payload.d.ts +18 -987
- package/payload.js +16831 -19058
- package/payload.mjs +16827 -19079
- package/schemaValidator.d.ts +1316 -0
- package/serializer/index.d.ts +9 -0
- package/serializer/mysqlImports.d.ts +7 -0
- package/serializer/mysqlSchema.d.ts +4650 -0
- package/serializer/mysqlSerializer.d.ts +7 -0
- package/serializer/pgImports.d.ts +11 -0
- package/serializer/pgSchema.d.ts +4792 -0
- package/serializer/pgSerializer.d.ts +7 -0
- package/serializer/schemaToDrizzle.d.ts +7 -0
- package/serializer/sqliteImports.d.ts +7 -0
- package/serializer/sqliteSchema.d.ts +2801 -0
- package/serializer/sqliteSerializer.d.ts +6 -0
- package/serializer/studio.d.ts +53 -0
- package/snapshotsDiffer.d.ts +3936 -0
- package/sqlgenerator.d.ts +33 -0
- package/utils/words.d.ts +7 -0
- package/utils-studio.d.mts +4 -0
- package/utils-studio.d.ts +4 -0
- package/utils.d.ts +78 -0
@@ -0,0 +1,7 @@
|
|
1
|
+
import { AnyPgTable, PgEnum, PgSchema } from "drizzle-orm/pg-core";
|
2
|
+
import type { IntrospectStage, IntrospectStatus } from "../cli/views";
|
3
|
+
import type { PgSchemaInternal } from "../serializer/pgSchema";
|
4
|
+
import type { DB } from "../utils";
|
5
|
+
export declare const indexName: (tableName: string, columns: string[]) => string;
|
6
|
+
export declare const generatePgSnapshot: (tables: AnyPgTable[], enums: PgEnum<any>[], schemas: PgSchema[], schemaFilter?: string[]) => PgSchemaInternal;
|
7
|
+
export declare const fromDatabase: (db: DB, tablesFilter: ((table: string) => boolean) | undefined, schemaFilters: string[], progressCallback?: (stage: IntrospectStage, count: number, status: IntrospectStatus) => void) => Promise<PgSchemaInternal>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Relations } from "drizzle-orm";
|
2
|
+
import { AnyPgTable } from "drizzle-orm/pg-core";
|
3
|
+
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
4
|
+
import type { PgSchemaInternal } from "./pgSchema";
|
5
|
+
import type { SQLiteSchemaInternal } from "./sqliteSchema";
|
6
|
+
export declare const pgSchemaToDrizzle: (schema: PgSchemaInternal, schemaName: string) => Record<string, AnyPgTable | Relations>;
|
7
|
+
export declare const sqliteSchemaToDrizzle: (schema: SQLiteSchemaInternal) => Record<string, AnySQLiteTable | Relations>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
2
|
+
export declare const prepareFromExports: (exports: Record<string, unknown>) => {
|
3
|
+
tables: AnySQLiteTable[];
|
4
|
+
};
|
5
|
+
export declare const prepareFromSqliteImports: (imports: string[]) => Promise<{
|
6
|
+
tables: AnySQLiteTable[];
|
7
|
+
}>;
|