1
0
mirror of https://github.com/facebook/squangle.git synced 2026-10-24 10:19:18 +03:00
Samuele Maci e57a369174 Expose the session autocommit state on 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
2026-10-23 09:37:31 -07:00

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
SQuangLe - это C++ API для доступа к серверам MySQL
Readme BSD-3-Clause 2.6 MiB
Languages
C++ 100%