drizzle-kit 0.20.17-7f33638 → 0.20.17-84934d2

Sign up to get free protection for your applications and to get access to all the features.
package/utils.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  import type { Dialect } from "./schemaValidator";
2
2
  import type { NamedWithSchema } from "./cli/commands/migrate";
3
+ import type { ProxyParams } from "./serializer/studio";
4
+ import type { RunResult } from "better-sqlite3";
5
+ export type Proxy = (params: ProxyParams) => Promise<any[]>;
6
+ export type SqliteProxy = {
7
+ proxy: (params: ProxyParams) => Promise<any[] | RunResult>;
8
+ };
3
9
  export type DB = {
4
10
  query: <T extends any = any>(sql: string, params?: any[]) => Promise<T[]>;
5
11
  };