start to introduce a changes service

This commit is contained in:
Caleb Owens 2024-07-05 14:24:44 +02:00
parent 9dd3d69045
commit 4662779554
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,9 @@
use rusqlite::Connection;
// TODO: rename to patches
/// The changes struct provides a
pub struct Changes<'l> {
connection: &'l mut Connection,
}
impl<'l> Changes<'l> {}

View File

@ -3,6 +3,7 @@ use migrations::{gitbutler_migrations::gitbutler_migrations, migrator::Migrator}
use rusqlite::Connection;
use std::path::Path;
mod changes;
mod migrations;
const DATABASE_NAME: &str = "project.sqlite";
@ -12,6 +13,8 @@ struct ProjectStore {
connection: Connection,
}
impl ProjectStore {}
/// Database setup
///
/// Before touching any database related code, please read https://github.com/the-lean-crate/criner/discussions/5 first.