mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-10-05 16:37:44 +03:00
start to introduce a changes service
This commit is contained in:
parent
9dd3d69045
commit
4662779554
9
crates/gitbutler-project-store/src/changes.rs
Normal file
9
crates/gitbutler-project-store/src/changes.rs
Normal 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> {}
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user