mirror of
https://github.com/facebook/squangle.git
synced 2026-10-24 10:19:18 +03:00
main
Connection
Summary: `Connection` gains `getAutocommit()`, which forwards to `ConnectionHolder::getAutocommit()`: the `SERVER_STATUS_AUTOCOMMIT` bit of the server status that the server last reported. The holder already has it, but `Connection` did not expose it, so callers above squangle (the `common/db/lang` bindings) could not read it. When the connection has no MySQL handle, it throws `db::InvalidConnectionException` through `CHECK_THROW`, as its neighbour `mysqlThreadId()` does. Reviewed By: billyzimba Differential Revision: D126944854 fbshipit-source-id: ec806f773bf96a6ff18482cccf84c79885d106e7
SQuangLe
Overview
SQuangLe is a C++ MySQL client library built on top of WebScaleSQL's C client library. It does not require a WebScaleSQL server - WebScaleSQL, MySQL, MariaDB, and Percona Server should all work fine.
Current Status
SQuangLe is not supported as a standalone project; it is released as a dependency of HHVM's async mysql extension to the Hack language.
Features
- Object-oriented API
- Query builder with automatic escaping
- Asynchronous query execution
License
SQuangLe is BSD-licensed. We also provide an additional patent grant. Please see the LICENSE file.
Contributing
Please see CONTRIBUTING.md
Description
Languages
C++
100%