PostgreSQL driver for ::sql, backed by the pure-Hot hot.dev/pg wire-protocol client. Placeholders compile to $N; write ?? / ??| / ??& for the JSONB operators, and dollar-quoted bodies pass through unrewritten.
Functions
open
fn (options: Map): ::sql/Db
Open a PostgreSQL-backed ::sql/Db. Options are ::pg/PgOptions
(host, port, user, password, database, ssl, tls,
timeout).
Example
db ::sql::pg/open({user: "postgres", password: "secret", database: "app"})
pg-execute
fn (conn: Any, sql: Str, params: Vec): Map
pg-query
fn (conn: Any, sql: Str, params: Vec): Vec