Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Questions or feedback? Join the [Discord](https://discord.gg/hikari).
([docs](https://sqlc-gen-better-python.rayakame.dev/docs/guide/drivers/)).
- **Typed query functions** - one module per query file, one function per query
([docs](https://sqlc-gen-better-python.rayakame.dev/docs/guide/writing-queries/)).
- **PostgreSQL enums** as `enum.StrEnum` classes
- **PostgreSQL enum types and MySQL enum columns** as `enum.StrEnum` classes
([docs](https://sqlc-gen-better-python.rayakame.dev/docs/guide/enums/)).
- **Type overrides and converters** - swap a column's Python type, or plug in your
own encode/decode functions
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/og-image.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ layout: hextra-home
{{< hextra/feature-card
title="Enums"
link="docs/guide/enums"
subtitle="PostgreSQL enums become enum.StrEnum classes, wired through models and queries."
subtitle="PostgreSQL enum types and MySQL enum columns become enum.StrEnum classes, wired through models and queries."
>}}
{{< hextra/feature-card
title="Type overrides & converters"
Expand Down Expand Up @@ -175,7 +175,7 @@ Generated code is held to the same standard as hand-written code:

- **Type-checked.** Every generated file passes pyright in strict mode and ruff.
- **Tested against real databases.** The suite runs the generated code against
live PostgreSQL and SQLite, across every driver and model type.
live PostgreSQL, SQLite, and MySQL, across every driver and model type.
- **Deterministic.** Output is byte-identical between runs, and CI fails if a
change would silently alter what you get.

Expand Down
8 changes: 4 additions & 4 deletions docs/content/docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ it.
## Explore by feature

{{< cards >}}
{{< card link="guide/drivers" title="Drivers" icon="database" subtitle="asyncpg, psycopg, aiosqlite, sqlite3, and turso." >}}
{{< card link="guide/drivers" title="Drivers" icon="database" subtitle="asyncpg, psycopg, aiosqlite, sqlite3, asyncmy, pymysql, and turso." >}}
{{< card link="guide/model-types" title="Model types" icon="cube" subtitle="dataclass, attrs, msgspec, or pydantic." >}}
{{< card link="guide/writing-queries" title="Writing queries" icon="code" subtitle="How query annotations become typed functions." >}}
{{< card link="guide/enums" title="Enums" icon="collection" subtitle="PostgreSQL enums as enum.StrEnum classes." >}}
{{< card link="guide/enums" title="Enums" icon="collection" subtitle="PostgreSQL enum types and MySQL enum columns as enum.StrEnum classes." >}}
{{< card link="guide/type-overrides" title="Type overrides" icon="adjustments" subtitle="Swap the Python type of a column." >}}
{{< card link="guide/converters" title="Converters" icon="puzzle" subtitle="Your own encode/decode functions for a column." >}}
{{< card link="guide/working-with-json" title="Working with JSON" icon="document-text" subtitle="Typed JSON columns with msgspec structs." >}}
Expand All @@ -38,8 +38,8 @@ it.
| | |
|---|---|
| **Python** | 3.12 or newer |
| **Engines** | PostgreSQL, SQLite |
| **Drivers** | `asyncpg`, `psycopg_async`, `psycopg_sync`, `aiosqlite`, `sqlite3`, and experimental `turso_async`/`turso_sync` |
| **Engines** | PostgreSQL, SQLite, MySQL |
| **Drivers** | `asyncpg`, `psycopg_async`, `psycopg_sync`, `aiosqlite`, `sqlite3`, `asyncmy`, `pymysql`, and experimental `turso_async`/`turso_sync` |
| **Model types** | `dataclass`, `attrs`, `msgspec`, `pydantic` |
| **Docstrings** | `google`, `numpy`, `pep257`, or none |
| **Checked with** | pyright (strict) and ruff |
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/guide/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Start with the essentials, then dip into feature pages as you need them:

{{< cards >}}
{{< card link="configuration" title="Configuration" subtitle="The sqlc.yaml plugin block and the core options." >}}
{{< card link="drivers" title="Drivers" subtitle="asyncpg, psycopg, aiosqlite, sqlite3, and turso - and which query commands each supports." >}}
{{< card link="drivers" title="Drivers" subtitle="asyncpg, psycopg, aiosqlite, sqlite3, asyncmy, pymysql, and turso - and which query commands each supports." >}}
{{< card link="model-types" title="Model types" subtitle="dataclass, attrs, msgspec, or pydantic models." >}}
{{< card link="writing-queries" title="Writing queries" subtitle="How query annotations become typed Python functions." >}}
{{< /cards >}}
Expand Down
Binary file modified docs/static/images/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading