* The SQL dialects SurrealDB 4.0 runs over RPC, besides SurrealQL: PostgreSQL with `pgsql` and MySQL with `mysql`. /
// Source: https://github.com/surrealdb/surrealdb.js | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
* The SQL dialects SurrealDB 4.0 runs over RPC, besides SurrealQL: PostgreSQL with `pgsql` and
* MySQL with `mysql`.
*/
export type SqlDialect = "pgsql" | "mysql";
/**
* One entry of a batch: a statement text, with variables which win over the call's own.
*/
export interface SqlBatchEntry {
text: string;
vars?: Record<string, unknown>;
}
/**
* The statements of a call: a text, which may hold several `;`-separated statements, or a batch
* of texts and entries run in order. A failing batch entry does not stop the ones after it.
*/
export type SqlStatements = str
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key