stdbm

Sentence-Tag DataBase Manager

Crates.io Crates.io License Build Status Contributors

About

Simple manager for databases with sentences and tags. * Sentence-tag relationship is 1:N; * I/O operations with csv files.

Usage

```bash stdbm Sentences-tags database manager

USAGE: stdbm

OPTIONS: -h, --help Print help information

SUBCOMMANDS: add Add new register filter-string Filter and display datatable registers which contain filter_string filter-tag Filter and display sentences which are related to tag help Print this message or the help of the given subcommand(s) list List registers of datatable rm Remove register by id save Save datatable to file path 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" sentences = "assets/sentences.csv" tags = "assets/tags.csv" sentencestags = "assets/sentencestags.csv" checkidsonload = false overwrite = true bckp_folder = "bckp/" ```

File structure

. ├── .github │   ├── ISSUE_TEMPLATE │   │   ├── bug_report.md │   │   └── feature_request.md │   └── workflows │   └── ci.yml ├── .gitignore ├── Cargo.toml ├── LICENSE.md ├── README.md ├── assets │   ├── sentences.csv │   ├── sentences_tags.csv │   └── tags.csv ├── config │   └── default.toml └── src ├── db_operations.rs ├── settings.rs └── stdbm.rs

License

Licensed under Apache 2.0.

Development

Create a New Tag & Run CI

The CI pipeline (.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