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
Showing only changes of commit 0695740666 - Show all commits

View File

@ -23,8 +23,10 @@ pub enum DeserializeDatabase {
impl From<DeserializeDatabase> for Collection {
fn from(database: DeserializeDatabase) -> Self {
match database {
DeserializeDatabase::V20250103(collection) => {
collection.into_iter().map(Into::into).collect()
DeserializeDatabase::V20250103(db) => {
let mut collection: Collection = db.into_iter().map(Into::into).collect();
collection.sort_unstable();
collection
}
}
}