@rebasepro/types 0.10.0 → 0.10.1-canary.31c773c

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.
@@ -391,11 +391,13 @@ export interface RebaseServerClient<DB = unknown> extends RebaseClient<DB> {
391
391
  email: EmailService;
392
392
  /**
393
393
  * Execute raw SQL against the database. Always present server-side for SQL
394
- * engines.
394
+ * engines. Values interpolated into the query should be passed via
395
+ * `params`, referenced as `$1`, `$2`, … placeholders in the query text.
395
396
  */
396
397
  sql(query: string, options?: {
397
398
  database?: string;
398
399
  role?: string;
400
+ params?: unknown[];
399
401
  }): Promise<Record<string, unknown>[]>;
400
402
  }
401
403
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rebasepro/types",
3
3
  "type": "module",
4
- "version": "0.10.0",
4
+ "version": "0.10.1-canary.31c773c",
5
5
  "description": "Rebase type definitions — shared interfaces and controller types",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/rebaseco"
@@ -384,9 +384,10 @@ export interface RebaseServerClient<DB = unknown> extends RebaseClient<DB> {
384
384
 
385
385
  /**
386
386
  * Execute raw SQL against the database. Always present server-side for SQL
387
- * engines.
387
+ * engines. Values interpolated into the query should be passed via
388
+ * `params`, referenced as `$1`, `$2`, … placeholders in the query text.
388
389
  */
389
- sql(query: string, options?: { database?: string; role?: string }): Promise<Record<string, unknown>[]>;
390
+ sql(query: string, options?: { database?: string; role?: string; params?: unknown[] }): Promise<Record<string, unknown>[]>;
390
391
  }
391
392
 
392
393
  // ─── RebaseBrowserClient ─────────────────────────────────────────────────────