Description
Create SQLite database adapter for development and lightweight applications.
Requirements
Acceptance Criteria
- SQLite adapter implements Database trait
- Support for file and in-memory databases
- SQLite-specific SQL generation
- Feature flag for SQLite support
Files to create
beatrix_core/src/relational/db/sqlite.rs
- Update
beatrix_core/Cargo.toml with SQLite dependencies
Example Usage
use beatrix::relational::SQLite;
// File database
let db = SQLite::new("database.db").await?;
// In-memory database
let db = SQLite::memory().await?;
let users = User::select().fetch_all(&db).await?;
Description
Create SQLite database adapter for development and lightweight applications.
Requirements
Acceptance Criteria
Files to create
beatrix_core/src/relational/db/sqlite.rsbeatrix_core/Cargo.tomlwith SQLite dependenciesExample Usage