compat.libmysqlclient
MySQL C API client library (static, client-only source)
mcpp add compat.libmysqlclient@8.4.6
Usage
From this repository's own test project — built and run by CI, not written for the website.
#ifdef HAVE_LIBMYSQLCLIENT
#include <mysql.h>
int main() {
static_assert(MYSQL_VERSION_ID == 80406);
if (mysql_get_client_version() != 80406) return 1;
MYSQL* client = mysql_init(nullptr);
if (client == nullptr) return 2;
mysql_close(client);
return 0;
}
#else
int main() { return 0; }
#endif
tests/examples/libmysqlclient/tests/client.cpp · project tests/examples/libmysqlclient
Build · upstream manifest
- targets
mysqlclient (lib)- manifest version
8.4.6- dependencies
compat- source
https://raw.githubusercontent.com/wellwei/libmysqlclient/8.4.6/mcpp.toml
Versions
| Version | Platforms | Mirrors | sha256 |
|---|---|---|---|
8.4.6 latest |
LinuxmacOS | source | 27decd671659… |