Expand description
Database service abstraction layer
This module provides an async database interface that abstracts away the underlying database implementation. This makes it easy to:
- Switch between sync (rusqlite) and async (tokio-rusqlite) implementations
- Prevent blocking the async runtime with synchronous database calls
- Test with different database backends
- Migrate to other database systems in the future
Structsยง
- Query
- Represents a database query that can be executed
- Rusqlite
Service - Rusqlite-based database service implementation
- Transaction
- Transaction handle for batching multiple operations
Enumsยง
- Query
Param - Query parameter types supported by the database
Traitsยง
- Database
Service - Database service trait - abstraction over database operations
Functionsยง
- convert_
params ๐ - Convert QueryParam to rusqlite::types::Value
- execute_
query ๐ - query_
many ๐ - query_
one ๐ - query_
optional ๐
Type Aliasesยง
- DbResult
- Database query result type