DATABASE_URL and uses the same model for validated HTTP input, JSON responses, table creation and CRUD:
sqlite_api example provides a smaller SQLite-only server. The multi-database example defaults to an in-memory database and only accepts loopback bind addresses. Set DATABASE_URL='sqlite://app.db?mode=rwc' for a local database file and LISTEN_ADDR for another loopback address or port. With both integrations enabled, SqlError implements Axum responses: validation errors return 422, missing rows return 404, database constraint violations return 409, and other driver errors return a generic 500 response.