drizzle-kit 0.20.4-5bb2ccb → 0.20.4-c212886

Sign up to get free protection for your applications and to get access to all the features.
@@ -112,10 +112,5 @@ export declare const pgIntrospect: (config: PgConfigIntrospect, filters: string[
112
112
  values: Record<string, string>;
113
113
  }>;
114
114
  };
115
- ts: {
116
- file: string;
117
- imports: string;
118
- decalrations: string;
119
- schemaEntry: string;
120
- };
115
+ ts: string;
121
116
  }>;
@@ -51,12 +51,7 @@ export declare const sqliteIntrospect: (config: SQLiteCliConfig, filters: string
51
51
  };
52
52
  enums: {};
53
53
  };
54
- ts: {
55
- file: string;
56
- imports: string;
57
- decalrations: string;
58
- schemaEntry: string;
59
- };
54
+ ts: string;
60
55
  }>;
61
56
  export declare const sqlitePushIntrospect: (client: DrizzleDbClient, filters: string[]) => Promise<{
62
57
  schema: {
@@ -1,4 +1,6 @@
1
1
  import type { Client } from "@libsql/client";
2
+ import { BetterSQLite3Database } from "drizzle-orm/better-sqlite3";
3
+ import { MySql2Database } from "drizzle-orm/mysql2";
2
4
  import type { PgDatabase } from "drizzle-orm/pg-core";
3
5
  import type { Client as PgClient } from "pg";
4
6
  export declare abstract class DrizzleDbClient<T = any> {
@@ -11,10 +13,22 @@ export declare class DrizzleORMPgClient extends DrizzleDbClient<PgDatabase<any>>
11
13
  query<K = any>(query: string, values?: any[] | undefined): Promise<K[]>;
12
14
  run(query: string): Promise<void>;
13
15
  }
16
+ export declare class DrizzleORMMySQLClient extends DrizzleDbClient<MySql2Database<any>> {
17
+ query<K = any>(query: string, values?: any[] | undefined): Promise<K[]>;
18
+ run(query: string): Promise<void>;
19
+ }
20
+ export declare class DrizzleORMSQLiteClient extends DrizzleDbClient<BetterSQLite3Database<any>> {
21
+ query<K = any>(query: string, values?: any[] | undefined): Promise<K[]>;
22
+ run(query: string): Promise<void>;
23
+ }
14
24
  export declare class BetterSqlite extends DrizzleDbClient {
15
25
  run(query: string): Promise<void>;
16
26
  query(query: string): Promise<any[]>;
17
27
  }
28
+ export declare class MySQL2Client extends DrizzleDbClient {
29
+ run(query: string): Promise<void>;
30
+ query(query: string): Promise<any>;
31
+ }
18
32
  export declare class TursoSqlite extends DrizzleDbClient<Client> {
19
33
  run(query: string): Promise<void>;
20
34
  query(query: string): Promise<any[]>;
package/global.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export declare const originUUID = "00000000-0000-0000-0000-000000000000";
2
2
  export declare const snapshotVersion = "5";
3
3
  export declare function assertUnreachable(x: never): never;
4
+ export declare const mapValues: <IN, OUT>(obj: Record<string, IN>, map: (input: IN) => OUT) => Record<string, OUT>;
@@ -0,0 +1,4 @@
1
+ import "./@types/utils";
2
+ import { ConfigIntrospectCasing } from "./cli/commands/utils";
3
+ import { PgSchema } from "./serializer/pgSchema";
4
+ export declare const schemaToTypeScript: (schema: PgSchema, casing: ConfigIntrospectCasing) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.20.4-5bb2ccb",
3
+ "version": "0.20.4-c212886",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  "packit": "pnpm build && cp package.json dist/ && cd dist && pnpm pack",
42
42
  "tsc": "tsc -p tsconfig.build.json",
43
43
  "pub": "cp package.json readme.md dist/ && cd dist && npm publish",
44
- "studio": "tsx ./src/cli/index.ts studio --verbose --port=3000",
44
+ "studio": "./dist/index.cjs studio --verbose",
45
45
  "studio:dev": "tsx ./src/cli/index.ts studio --verbose"
46
46
  },
47
47
  "ava": {
@@ -56,7 +56,7 @@
56
56
  ]
57
57
  },
58
58
  "dependencies": {
59
- "@drizzle-team/studio": "^0.0.31",
59
+ "@drizzle-team/studio": "^0.0.27",
60
60
  "@esbuild-kit/esm-loader": "^2.5.5",
61
61
  "camelcase": "^7.0.1",
62
62
  "chalk": "^5.2.0",