Available

amalgame-mysql

Dynamic-link binding to libmariadb. MariaDB ≥ 10.x and MySQL ≥ 5.7.

amc package add mysql GitHub ↗ ← Back to the ecosystem

Overview

The MariaDB client is wire-protocol compatible with MySQL. The package links to the system's libmariadb, which talks to both MariaDB and a recent MySQL equally well.

Features

  • MariaDB ≥ 10.x and MySQL ≥ 5.7 compatible (shared wire protocol)
  • MySQL.Connect, Exec, Query
  • Prepared statements, transactions, multi-result-sets
  • TLS, compression, charset support
  • Dynamic-link pattern — no vendored fork to maintain

Example

Minimal usage example — copy-paste runnable after install.

amc package add mysql

let db = MySQL.Connect("host=localhost user=app password=*** db=shop")
let rows = db.Query("SELECT id, total FROM orders WHERE customer_id = ?", [42])

At a glance

Related packages