Sentence-Tag DataBase Manager
Simple manager for databases with sentences and tags written in Rust. * Sentence-tag relationship is 1:N; * I/O only with csv files for now.
```bash stdbm Sentences-tags database manager
USAGE:
stdbm
OPTIONS: -h, --help Print help information
SUBCOMMANDS: add Add new register filter Filter and display datatable registers which contain filter_string help Print this message or the help of the given subcommand(s) list List registers of datatable load Load csv file to manipulate data rm Remove register by id save Save datatable to file path start Start (load) DB with info from config file update Update register value by id ```
The start subcommand uses the config file information to start up the database. The default config file can be found at config/default.toml
-- current content:
```toml config_type = "toml"
[dataio] datafiletype = "csv" sentencesfile = "sentences.csv" tagsfile = "tags.csv" sentencestagsfile = "sentences-tags.csv" checkidsonload = false overwrite = true bckp_folder = "bckp/" ```
``` . ├── .github │ ├── ISSUETEMPLATE │ │ ├── bugreport.md │ │ └── feature_request.md │ └── workflows │ └── ci.yml ├── .gitignore ├── Cargo.toml ├── LICENSE.md ├── README.md ├── config │ └── default.toml └── src ├── settings.rs └── stdbm.rs
```
Licensed under Apache 2.0.
The CI (workflow at .github/workflows/ci.yml
) runs every time a new tag is pushed.
To push a new git tag the following command can be used:
git tag v<MAJOR>.<MINOR>.<PATCH> && git push origin --tag
For example:
git tag v0.0.2 && git push origin --tag