aboutsummaryrefslogtreecommitdiffstats
path: root/rust/README.md
blob: 8d9084c34cc0d778ce4386c788a450763142beea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

Things!

    sudo apt install libsqlite3-dev libpq-dev

    wget https://oss.sonatype.org/content/repositories/snapshots/io/swagger/swagger-codegen-cli/3.0.0-SNAPSHOT/swagger-codegen-cli-3.0.0-20180411.134218-60.jar

    cargo swagger ../golang/fatcat-openapi2.yml gen-out

    diesel print-schema > src/database_schema.rs

Debugging SQL errors:

    psql fatcat_rs < migrations/2018-05-12-001226_init/up.sql