What is covered:
- Using Diesel ORM
- Building command-line tools with clap
Generate
diesel migration generate <name>
Run
diesel migration run
--help | -h
diesel_patches 0.1.0
Collins Muriuki <murerwacollins@gmail.com>
A cli for the diesel_patches database
USAGE:
diesel_database_recipes [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
help Prints this message or the help of the given subcommand(s)
new_poll Creates a new poll
new_user Creates a new user
view_polls Views Polls
view_users Views Users
new_user
diesel_database_recipes-new_user
Creates a new user
USAGE:
diesel_database_recipes new_user --name <name> --pass <password>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-n, --name <name> The name of the new user
-p, --pass <password> The password of the user