mysql-native v2.1.0
Nick Sabalausky (Abscissa)
SeeWebsiteToContactMe at semitwist.com
Sat Mar 3 07:37:38 UTC 2018
An all-D MySQL/MariaDB client library:
https://github.com/mysql-d/mysql-native
==========================================
Tagged 'v2.1.0', which mainly adds a few new features, including greatly
simplified shortcut syntax for prepared statements (with automatic,
implicit caching and re-use):
---
int i = 5;
string s = "Hello world";
conn.exec("INSERT INTO table_name VALUES (?, ?)", i, s);
conn.query("SELECT * FROM table_name WHERE id=? AND name=?", i, s);
// Also works:
Prepared stmt = conn.prepare("INSERT ...blah... (?, ?)");
conn.exec(stmt, i, s);
---
As well as additional tools for optional micro-management of
registering/releasing prepared statements.
It also fixes #28: "MYXProtocol thrown when using large integers as
prepared parameters."
Full changelog
https://github.com/mysql-d/mysql-native/blob/master/CHANGELOG.md#v210---2018-03-02
More information about the Digitalmars-d-announce
mailing list