Replace JSON file as a database with SQLite #248
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Most common Rust crate for this seems to be https://crates.io/crates/rusqlite.
If possible use this to make multiple sequential calls to the database atomic.
Not needed for alpha. Move to beta because having a proper database will make out-of-band updates much much easier.
Though this will make having the DB in a remote location rather impossible (#64)
With this also remove the musichoard-edit binary. Whilst it's not really the same most use cases for edit can be met with other features that have been added to musichoard and what hasn't can probably be done by manual database modification.
Do this over multiple merge requests:
Add SQLite with identical functionality as the JSON database - the same unit tests must pass.#265Remove musichoard-edit binary.#266Remove the JSON database. Don't want to support both in light of the upcoming updates. Don't forget to convert the DB that's in use to SQLite.#267Refactor the IDatabase calls to write directly to DB. Figure out if it makes sense to update in-memory then write or write then read from DB. Most likely the best solution has no database cache in memory and all database access is via the actual DB.To be followed up in #268wojtek referenced this issue2025-01-12 11:28:06 +01:00