@rebasepro/types 0.10.0 → 0.10.1-canary.a54c057
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
|
@@ -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 ─────────────────────────────────────────────────────
|