sqlx/examples/realworld-postgres
2019-12-28 04:02:52 -08:00
..
2019-12-28 00:23:04 -08:00
2019-12-28 04:02:52 -08:00
2019-12-27 21:50:13 -08:00
2019-12-27 17:31:01 -08:00

Real World SQLx

Usage

Declare the database URL.

export DATABASE_URL="postgres://postgres@localhost/realworld"

Create the database.

createdb -U postgres realworld

Load the database schema.

psql -d "$DATABASE_URL" -f ./schema.sql

Run.

cargo run