bun-query-builder 0.2.26 → 0.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- export declare function explain(sql: string): Promise<void>;
1
+ export declare function explain(sql: string): Promise<unknown>;
@@ -1,2 +1,2 @@
1
1
  import type { FileOptions } from '../types';
2
- export declare function file(path: string, opts?: FileOptions): Promise<void>;
2
+ export declare function file(path: string, opts?: FileOptions): Promise<unknown>;
@@ -10,7 +10,7 @@ export declare interface ColumnInfo {
10
10
  name: string
11
11
  type: string
12
12
  nullable: boolean
13
- default: any
13
+ default: unknown
14
14
  isPrimaryKey?: boolean
15
15
  isForeignKey?: boolean
16
16
  }
@@ -1,2 +1,5 @@
1
1
  import type { IntrospectOptions } from '../types';
2
- export declare function introspect(dir: string, _opts?: IntrospectOptions): Promise<void>;
2
+ export declare function introspect(dir: string, _opts?: IntrospectOptions): Promise<{
3
+ models: unknown;
4
+ schema: unknown
5
+ }>;
@@ -1 +1 @@
1
- export declare function ping(): Promise<void>;
1
+ export declare function ping(): Promise<unknown>;
@@ -1,2 +1,6 @@
1
1
  import type { SqlOptions } from '../types';
2
- export declare function sql(dir: string, table: string, opts?: SqlOptions): void;
2
+ export declare function sql(dir: string, table: string, opts?: SqlOptions): {
3
+ sql: unknown;
4
+ qb: unknown;
5
+ schema: unknown
6
+ };
@@ -1,2 +1,2 @@
1
1
  import type { UnsafeOptions } from '../types';
2
- export declare function unsafe(sql: string, opts?: UnsafeOptions): Promise<void>;
2
+ export declare function unsafe(sql: string, opts?: UnsafeOptions): Promise<unknown>;
@@ -1,2 +1,2 @@
1
1
  import type { WaitReadyOptions } from '../types';
2
- export declare function waitReady(opts?: WaitReadyOptions): Promise<void>;
2
+ export declare function waitReady(opts?: WaitReadyOptions): Promise<boolean>;