MySQL driver for ::sql, backed by the pure-Hot hot.dev/mysql wire-protocol client. Placeholder style "question" — ? passes through to MySQL's prepared-statement protocol untouched. Placeholder compilation lexes MySQL dialect syntax: backslash escapes inside strings, # line comments, and backtick-quoted identifiers are never rewritten.
Functions
mysql-execute
fn (conn: Any, sql: Str, params: Vec): Map
mysql-query
fn (conn: Any, sql: Str, params: Vec): Vec
open
fn (options: Map): ::sql/Db
Open a MySQL-backed ::sql/Db. Options are ::mysql/MySqlOptions
(host, port, user, password, database, ssl, tls).
Example
db ::sql::mysql/open({user: "root", password: "secret", database: "app"})
quote-ident
fn (name: Str): Str
Quote an identifier for MySQL: backtick-wrapped with embedded backticks doubled (MySQL's default mode does not honor ANSI double quotes). Errs on empty or NUL-containing names.