Add a SQLite database backend #265
@ -5,8 +5,6 @@ use crate::core::collection::{
|
|||||||
musicbrainz::MbRefOption,
|
musicbrainz::MbRefOption,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const V20250103: &str = "V20250103";
|
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Deserialize, Serialize)]
|
||||||
#[serde(remote = "AlbumLibId")]
|
#[serde(remote = "AlbumLibId")]
|
||||||
pub enum AlbumLibIdDef {
|
pub enum AlbumLibIdDef {
|
||||||
|
@ -13,12 +13,13 @@ use crate::{
|
|||||||
interface::database::{IDatabase, LoadError, SaveError},
|
interface::database::{IDatabase, LoadError, SaveError},
|
||||||
},
|
},
|
||||||
external::database::serde::{
|
external::database::serde::{
|
||||||
common::V20250103,
|
|
||||||
deserialize::{DeserializeAlbum, DeserializeArtist, DeserializeDatabase},
|
deserialize::{DeserializeAlbum, DeserializeArtist, DeserializeDatabase},
|
||||||
serialize::{SerializeAlbum, SerializeArtist, SerializeDatabase},
|
serialize::{SerializeAlbum, SerializeArtist, SerializeDatabase},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const V20250103: &str = "V20250103";
|
||||||
|
|
||||||
/// Trait for the SQL database backend.
|
/// Trait for the SQL database backend.
|
||||||
pub trait ISqlDatabaseBackend<'conn> {
|
pub trait ISqlDatabaseBackend<'conn> {
|
||||||
type Tx: ISqlTransactionBackend + 'conn;
|
type Tx: ISqlTransactionBackend + 'conn;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user