mirror of
https://github.com/tursodatabase/libsql.git
synced 2025-05-01 01:14:32 +00:00
398 B
398 B
TODOs Example
Setup
-
Declare the database URL
export DATABASE_URL="sqlite:todos.db"
-
Create the database.
$ sqlx db create
-
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