10000 GitHub - roku-on-it/actix-web-tutorial
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

roku-on-it/actix-web-tutorial

Repository files navigation

sudo apt install libpq-dev libmariadbclient postgresql-libs sqlite

cargo install diesel_cli --no-default-features --features postgres --verbose

diesel setup

  1. The next step now is to add our migrations using the CLI:

    diesel migration generate add_users

  2. We will first edit up.sql to add SQL to create our table.

  3. Create the model

  4. use diesel to automatically generate the schema it needs in a file called schema.rs.

    diesel print-schema > src/schema.rs

  5. Apply our database migration

    diesel migration run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0