Disponible
amalgame-mysql
Binding dynamic-link à libmariadb. MariaDB ≥ 10.x et MySQL ≥ 5.7.
Vue d'ensemble
Le client MariaDB est un drop-in compatible avec MySQL côté wire protocol. Le package se lie à libmariadb du système, qui parle aussi bien à un MariaDB qu'à un MySQL récent.
Caractéristiques
- ✓Compatible MariaDB ≥ 10.x et MySQL ≥ 5.7 (wire protocol partagé)
- ✓
MySQL.Connect,Exec,Query - ✓Prepared statements, transactions, multi-result-sets
- ✓TLS, compression, support des charsets
- ✓Pattern dynamic-link — pas de fork vendored à maintenir
Exemple
Exemple minimal d'utilisation — recopiable tel quel après l'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])
En bref
- Licence : Apache-2.0
- Installation :
amc package add mysql - Code source : amalgame-lang/amalgame-database-mysql
- Index officiel : amalgame-lang/packages-index