Litestar Integration¶
SQLSpec ships a Litestar plugin that wires database configs into the app lifecycle, dependency injection, and transactional hooks.
Choose a guide¶
Installation
Install the plugin and wire it into your Litestar app.
Quickstart
A fast path from configuration to your first request.
Dependency Injection
Bind sessions to handlers with explicit keys.
Transactions
Use context-aware commit and rollback flows.
Session Stores
Persist Litestar session state with SQLSpec stores.
API Reference
Detailed plugin configuration and hooks.