Metadata-Version: 2.4
Name: gluesql
Version: 0.19.0
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
License-File: LICENSE
Summary: GlueSQL is quite sticky. It attaches to anywhere.
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://gluesql.org/docs/
Project-URL: Homepage, https://gluesql.org
Project-URL: Repository, https://github.com/gluesql/gluesql-py

# GlueSQL.py

GlueSQL.py is a Python binding for the [GlueSQL](https://github.com/gluesql/gluesql) database engine. It provides an embedded SQL database that works with a selection of storage backends.

Supported storages:

- `MemoryStorage`
- `JsonStorage`
- `SharedMemoryStorage`
- `SledStorage`

Learn more at **<https://gluesql.org/docs>**.

## Installation

Install from PyPI:

```bash
pip install gluesql
```

## Usage

```python
from gluesql import Glue, MemoryStorage

storage = MemoryStorage()

engine = Glue(storage)

engine.query(
    """
    CREATE TABLE User (id INTEGER, name TEXT);
    INSERT INTO User VALUES (1, 'Hello'), (2, 'World');
    """
)

result = engine.query("SELECT * FROM User;")
print(result)
```

## License

This project is licensed under the Apache License, Version 2.0 - see the [LICENSE](LICENSE) file for details.

