@blitznocode/blitz-orm 0.15.0 → 0.15.1

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.
package/dist/index.d.mts CHANGED
@@ -9,13 +9,18 @@ type ConnectionConfig = {
9
9
  username: string;
10
10
  password: string;
11
11
  };
12
- /**
13
- * Thin wrapper over the official SurrealDB SDK.
14
- * Handles auto-connect, stale connection recovery, and query timeouts.
15
- */
12
+ type ReconnectConfig = {
13
+ attempts: number;
14
+ retryDelay: number;
15
+ retryDelayMax: number;
16
+ };
17
+ type SurrealClientOptions = {
18
+ queryTimeoutMs?: number;
19
+ reconnect?: Partial<ReconnectConfig>;
20
+ };
16
21
  declare class SurrealClient {
17
22
  #private;
18
- constructor(config: ConnectionConfig);
23
+ constructor(config: ConnectionConfig, options?: SurrealClientOptions);
19
24
  connect(): Promise<void>;
20
25
  close(): Promise<void>;
21
26
  query<T>(...args: QueryParameters): Promise<T[]>;