Skip to content

c12i/diesel_recipe_rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

working with databases in Rust

What is covered:

  1. Using Diesel ORM
  2. Building command-line tools with clap

Migrations

Generate

diesel migration generate <name>

Run

diesel migration run

CLI

--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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published