Skip to content

Commit

Permalink
Started implementing database
Browse files Browse the repository at this point in the history
  • Loading branch information
fri committed May 31, 2024
1 parent 67c0ebd commit d24efad
Show file tree
Hide file tree
Showing 5 changed files with 423 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on: workflow_dispatch

jobs:
build:
env:
CFLAGS: -Os
strategy:
fail-fast: false
matrix:
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ shlex = "*"
pathdiff = "*"
itertools = "*"
thousands = "*"
rusqlite = { version = "*", features = ["bundled"] }

[profile.release]
strip = true
Expand Down
3 changes: 3 additions & 0 deletions src/fm/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use crate::{
leader::Leader,
},
cp_mv_rm::{
database::DataBase,
dlg_dirscan::{DirscanType, DlgDirscan},
dlg_question::DlgQuestion,
},
Expand Down Expand Up @@ -100,6 +101,8 @@ impl App {

let archive_mounter = ArchiveMounter::new().map(|mounter| Rc::new(RefCell::new(mounter)));

let _ = DataBase::new("fcd.db");

Ok(App {
config: Rc::clone(config),
pubsub_tx: pubsub_tx.clone(),
Expand Down
Loading

0 comments on commit d24efad

Please sign in to comment.