Crates.io | ohca-utstein |
lib.rs | ohca-utstein |
version | 0.2.0 |
source | src |
created_at | 2023-04-05 18:04:13.478114 |
updated_at | 2023-04-05 18:04:13.478114 |
description | Utstein export script for the OHCA registry |
homepage | https://github.com/SterArcher/OHCA-registry-Slovenia |
repository | https://github.com/SterArcher/OHCA-registry-Slovenia/tree/api-dev/ohca-utstein |
max_upload_size | |
id | 831283 |
size | 225,152 |
To use the CLI, install it with cargo install ohca-utstein
and run it using ohca-utstein commands
.
To connect to a database using credentials and output a utstein.json
file use:
ohca-utstein json credentails -u user -d database_name -i 127.0.0.1:3306
You will be prompted for the database password.
To connect using a connection string and output a utstein_report.html
file use:
ohca-utstein html -o utstein_report.html connect -c mysql://{user}:{password}@{host}:{port}/{db}
Tailwind is used to help with stying the index.html
Utstein report template. To aid with that, the crate railwind
is used. To start using it, run:
cargo install railwind_cli
After installing it, navigate to this directory and run:
railwind -w -p
To run railwind_cli
and watch the index.html
file for changes.