-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update mysql example * update postgres example
- Loading branch information
Showing
44 changed files
with
236,342 additions
and
47,208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,17 +157,17 @@ jobs: | |
- name: Remove generated folder | ||
run: rm -rf ./examples/postgres/src | ||
- name: Create DB | ||
run: psql -q postgres://sea:sea@localhost/postgres -c 'CREATE DATABASE "dvdrental"' | ||
run: psql -q postgres://sea:sea@localhost/postgres -c 'CREATE DATABASE "sakila"' | ||
- name: Import DB Schema | ||
run: psql -q postgres://sea:sea@localhost/dvdrental < dvdrental-schema.sql | ||
run: psql -q postgres://sea:sea@localhost/sakila < sakila-schema.sql | ||
working-directory: ./examples/postgres | ||
- name: Import DB Data | ||
run: psql -q postgres://sea:sea@localhost/dvdrental < dvdrental-data.sql | ||
run: psql -q postgres://sea:sea@localhost/sakila < sakila-data.sql | ||
working-directory: ./examples/postgres | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: run | ||
args: "postgres://sea:[email protected]/dvdrental?currentSchema=public generated ./examples/postgres" | ||
args: "postgres://sea:[email protected]/sakila?currentSchema=public generated ./examples/postgres" | ||
- name: Integration tests | ||
working-directory: ./examples/postgres | ||
run: cargo test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.