drizzle-kit 0.20.3 → 0.20.4-c212886
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +36461 -36437
- package/drivers/index.d.ts +14 -0
- package/global.d.ts +1 -0
- package/package.json +1 -1
- package/payload.js +36761 -0
- package/payload.mjs +36809 -0
- package/serializer/mysqlImports.d.ts +5 -0
- package/serializer/mysqlSerializer.d.ts +2 -2
- package/serializer/sqliteImports.d.ts +4 -0
- package/utils-studio.js +0 -1
- package/utils-studio.mjs +3410 -0
- package/utils.d.ts +1 -15
- package/utils.js +3623 -52919
- package/utils.mjs +8055 -0
- package/cli/commands/pgPushUtils.d.ts +0 -14
- package/cli/selector-ui.d.ts +0 -13
- package/cli/utils.d.ts +0 -11
- package/cli/validations/mysql.d.ts +0 -365
- package/cli/validations/sqlite.d.ts +0 -220
- 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 -53
@@ -1,4 +1,9 @@
|
|
1
1
|
import { AnyMySqlTable, MySqlSchema } from "drizzle-orm/mysql-core";
|
2
|
+
export declare const prepareFromExports: (exports: Record<string, unknown>) => {
|
3
|
+
tables: AnyMySqlTable<{}>[];
|
4
|
+
enums: any[];
|
5
|
+
schemas: MySqlSchema<string>[];
|
6
|
+
};
|
2
7
|
export declare const prepareFromMySqlImports: (imports: string[]) => Promise<{
|
3
8
|
tables: AnyMySqlTable<{}>[];
|
4
9
|
enums: any[];
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { AnyMySqlTable, MySqlSchema } from "drizzle-orm/mysql-core";
|
2
2
|
import { MySqlSchemaInternal } from "src/serializer/mysqlSchema";
|
3
|
-
import { Connection } from "mysql2/promise";
|
4
3
|
import { IntrospectStage, IntrospectStatus } from "src/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>;
|
@@ -1,4 +1,8 @@
|
|
1
1
|
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
2
|
+
export declare const prepareFromExports: (exports: Record<string, unknown>) => {
|
3
|
+
tables: AnySQLiteTable<{}>[];
|
4
|
+
enums: any[];
|
5
|
+
};
|
2
6
|
export declare const prepareFromSqliteImports: (imports: string[]) => Promise<{
|
3
7
|
tables: AnySQLiteTable<{}>[];
|
4
8
|
enums: any[];
|
package/utils-studio.js
CHANGED