Commit f8003dd5
f8003dd54305Merged
Scott Nixon <[email protected]> ยท 9 months ago ยท 2 files ยท +1 added ยท ~1 modified
Description
Add SQLite database layer for multi-project workspace
Implements attractor-86n - Create db.rs with SQLite pool initialization and schema.
Changes:
- Created crates/attractor-web/src/server/db.rs with:
- init_db() for SQLite pool initialization at ~/.attractor/web.db
- Schema creation for projects and documents tables
- CRUD functions: upsert_project, list_open_projects, close_project
- Document persistence: upsert_document, get_documents
- Project and CachedDoc data structures
- Updated crates/attractor-web/src/server/mod.rs to add db module declaration
This is the foundational persistence layer for the multi-project workspace, enabling project data and document content to persist across browser/server restarts.
Details
- Commit
- f8003dd54305
- Parent
- 902ccf52db5a