From 6a1e38168b1b9fa4d880296f4c2b8ec2f0f56a18 Mon Sep 17 00:00:00 2001 From: Christopher Date: Fri, 24 Jul 2026 02:37:10 +0200 Subject: [PATCH] docs: show the PARSE_DECLTYPES note only on the sqlite tabs The callout sat below the closing tabs shortcode of the Use it section, so every driver selection displayed it. Move it into the aiosqlite and sqlite3 tabs, right under the code samples it refers to. --- docs/content/docs/getting-started.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/content/docs/getting-started.md b/docs/content/docs/getting-started.md index e364767..8292adc 100644 --- a/docs/content/docs/getting-started.md +++ b/docs/content/docs/getting-started.md @@ -522,6 +522,13 @@ async def main() -> None: asyncio.run(main()) ``` +{{< callout type="info" >}} + The `detect_types=sqlite3.PARSE_DECLTYPES` above is not needed for this schema, + but it is what makes generated converters work once your tables use dates, + decimals, booleans, or blobs. See + [SQLite type conversion](/docs/guide/sqlite-type-conversion). +{{< /callout >}} + {{< /tab >}} {{< tab name="sqlite3" >}} @@ -545,10 +552,6 @@ for user in query.list_users(conn): print(user.name) ``` - {{< /tab >}} - -{{< /tabs >}} - {{< callout type="info" >}} The `detect_types=sqlite3.PARSE_DECLTYPES` above is not needed for this schema, but it is what makes generated converters work once your tables use dates, @@ -556,6 +559,10 @@ for user in query.list_users(conn): [SQLite type conversion](/docs/guide/sqlite-type-conversion). {{< /callout >}} + {{< /tab >}} + +{{< /tabs >}} + ## Next steps - Work through the [Guide](/docs/guide) - configuration, drivers, model types,