2021-01-12 14:37:44 +01:00
..
2021-01-12 14:37:44 +01:00
2020-03-31 20:35:34 +01:00

TODOs Example

Setup

  1. Declare the database URL

    export DATABASE_URL="sqlite:todos.db"
    
  2. Create the database.

    $ sqlx db create
    
  3. Run sql migrations

    $ sqlx migrate run
    

Usage

Add a todo

cargo run -- add "todo description"

Complete a todo.

cargo run -- done <todo id>

List all todos

cargo run