Metadata-Version: 2.5
Name: ob-mysql
Version: 2.36.0
Summary: OrionBelt Semantic Layer driver for MySQL 8.0+ (DB-API 2.0)
Author-email: Ralf Becher <info@orionbelt.ai>
License-Expression: BUSL-1.1
License-File: LICENSE
Keywords: db-api,mysql,obml,orionbelt,semantic-layer
Requires-Python: >=3.12
Requires-Dist: adbc-driver-manager>=1.8
Requires-Dist: ob-driver-core>=2.36.0
Requires-Dist: pyarrow>=16.0
Requires-Dist: pymysql>=1.1
Provides-Extra: dev
Requires-Dist: mypy>=1.10; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: respx>=0.21; extra == 'dev'
Requires-Dist: ruff>=0.4; extra == 'dev'
Provides-Extra: sqlalchemy
Requires-Dist: sqlalchemy>=2.0; extra == 'sqlalchemy'
Description-Content-Type: text/markdown

# ob-mysql

OrionBelt Semantic Layer driver for MySQL 8.0+ (DB-API 2.0)

Part of the [OrionBelt Semantic Layer](https://github.com/ralforion/orionbelt-semantic-layer) project.

## Installation

```bash
pip install ob-mysql
```

`ob-mysql` reads MySQL through the [ADBC MySQL driver](https://github.com/adbc-drivers/mysql)
(Arrow-native) when it is installed, and through PyMySQL otherwise. The ADBC
driver is not on PyPI; install it with [`dbc`](https://columnar.tech/dbc):

```bash
pip install dbc
dbc install mysql
```

The OrionBelt Docker images that ship the vendor drivers carry it already.
Both clients return the same Arrow types. The ADBC driver keeps fetches on
several threads concurrent, where a pure-Python client is bound by the GIL.

`connect(backend=...)` picks one explicitly: `"auto"` (default), `"adbc"` or
`"pymysql"`. A connection with `ssl_ca`, `ssl_cert` or `ssl_key` uses PyMySQL,
since the ADBC driver takes no certificate files.

## License

BUSL-1.1 — see [LICENSE](LICENSE) for details.
