Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christophwurst/diesel_many_to_many
Example code to demonstrate how to query many-to-many associated table rows with Rust
https://github.com/christophwurst/diesel_many_to_many
Last synced: 2 months ago
JSON representation
Example code to demonstrate how to query many-to-many associated table rows with Rust
- Host: GitHub
- URL: https://github.com/christophwurst/diesel_many_to_many
- Owner: ChristophWurst
- License: mit
- Created: 2017-06-03T12:15:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-30T15:22:25.000Z (about 2 years ago)
- Last Synced: 2023-03-23T13:32:10.245Z (almost 2 years ago)
- Language: Rust
- Size: 10.7 KB
- Stars: 33
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Diesel many to many playground
Example code to demonstrate how to query many-to-many associated table rows with Rust
```bash
docker run --name diesel_manytomany -e POSTGRES_USER=username -e POSTGRES_PASSWORD=password -e POSTGRES_DB=diesel_manytomany -p 5432:5432 postgres#in a different shell
diesel migration run
cargo run
```To see the queries run, use e.g. `timms/postgres-logging` instead of `postgres` as the Docker image.