Metadata-Version: 2.4
Name: ahi-sql
Version: 0.2.0
Summary: Small, dependency-light SQL helpers for AHI (safe identifiers, placeholders).
Project-URL: Homepage, https://github.com/adaptivehealthintelligence/ahi-python-packages
Project-URL: Documentation, https://adaptivehealthintelligence.github.io/ahi-python-packages/
Project-URL: Repository, https://github.com/adaptivehealthintelligence/ahi-python-packages
Author: Adaptive Health Intelligence
License: MIT
Keywords: ahi,sql
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# ahi-sql

Small, dependency-light SQL helpers — the bits people otherwise hand-roll and
get subtly wrong.

```python
from ahi.sql import quote_identifier, placeholders

quote_identifier("user table")          # '"user table"'
placeholders(3, style="qmark")          # '?, ?, ?'   (Athena)
placeholders(3, style="named")          # ':1, :2, :3' (Redshift Data API)
```

> Quote **identifiers** with `quote_identifier`. Quote **values** by passing them
> as bind parameters to your driver — never by string-formatting them in.

Part of [ahi-python-packages](https://github.com/adaptivehealthintelligence/ahi-python-packages).
