Add a SQLite database backend #265

Merged
wojtek merged 20 commits from 248---replace-json-file-as-a-database-with-sqlite into main 2025-01-12 10:24:53 +01:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit 03d950109b - Show all commits

View File

@ -5,8 +5,6 @@ use crate::core::collection::{
musicbrainz::MbRefOption,
};
pub const V20250103: &str = "V20250103";
#[derive(Debug, Deserialize, Serialize)]
#[serde(remote = "AlbumLibId")]
pub enum AlbumLibIdDef {

View File

@ -13,12 +13,13 @@ use crate::{
interface::database::{IDatabase, LoadError, SaveError},
},
external::database::serde::{
common::V20250103,
deserialize::{DeserializeAlbum, DeserializeArtist, DeserializeDatabase},
serialize::{SerializeAlbum, SerializeArtist, SerializeDatabase},
},
};
const V20250103: &str = "V20250103";
/// Trait for the SQL database backend.
pub trait ISqlDatabaseBackend<'conn> {
type Tx: ISqlTransactionBackend + 'conn;