Metadata-Version: 2.3
Name: harlequin-mysql
Version: 1.1.0
Summary: A Harlequin adapter for MySQL.
License: MIT
Author: Ted Conbeer
Author-email: tconbeer@users.noreply.github.com
Requires-Python: >=3.9,<3.14
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: harlequin (>=1.25.0,<3)
Requires-Dist: mysql-connector-python (>=9.1.0,<10.0.0)
Description-Content-Type: text/markdown

# harlequin-mysql

This repo provides the Harlequin adapter for MySQL.

## Installation

`harlequin-mysql` depends on `harlequin`, so installing this package will also install Harlequin.

### Using pip

To install this adapter into an activated virtual environment:
```bash
pip install harlequin-mysql
```

### Using poetry

```bash
poetry add harlequin-mysql
```

### Using pipx

If you do not already have Harlequin installed:

```bash
pip install harlequin-mysql
```

If you would like to add the Postgres adapter to an existing Harlequin installation:

```bash
pipx inject harlequin harlequin-mysql
```

### As an Extra
Alternatively, you can install Harlequin with the `mysql` extra:

```bash
pip install harlequin[mysql]
```

```bash
poetry add harlequin[mysql]
```

```bash
pipx install harlequin[mysql]
```

## Usage and Configuration

You can open Harlequin with the MySQL adapter by selecting it with the `-a` option and passing connection parameters as CLI options:

```bash
harlequin -a mysql -h localhost -p 3306 -U root --password example --database dev
```

The MySQL adapter does not accept a connection string or DSN.

Many more options are available; to see the full list, run:

```bash
harlequin --help
```

For more information, see the [Harlequin Docs](https://harlequin.sh/docs/mysql/index).
