sqlx/examples/realworld-postgres
2020-01-26 19:43:39 -05:00
..
src Making realworld-postgres example compile 2020-01-26 19:43:39 -05:00
Cargo.toml Add test_on_acquire option to the Pool 2020-01-11 01:01:21 -08:00
README.md Clean up the example a touch 2019-12-27 21:50:13 -08:00
schema.sql Audit MySql and Postgres protocols 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