https://github.com/kingluo/tokio-postgres-hello-world
hello world example for tokio-postgres
https://github.com/kingluo/tokio-postgres-hello-world
await example tokio-postgres tokio-rs
Last synced: 4 months ago
JSON representation
hello world example for tokio-postgres
- Host: GitHub
- URL: https://github.com/kingluo/tokio-postgres-hello-world
- Owner: kingluo
- License: apache-2.0
- Created: 2020-01-24T09:06:15.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-24T09:33:26.000Z (about 6 years ago)
- Last Synced: 2025-03-22T22:44:00.641Z (11 months ago)
- Topics: await, example, tokio-postgres, tokio-rs
- Language: Rust
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tokio-postgres-hello-world
hello world example for tokio-postgres.
The tokio-postgres has no offical exmaple so far, so I copy some test codes into standalone project.
I hope that it is referential example for people who also are interested in tokio-postgres. After all, `async/.await` database query is necessary for most backend apps.
## Run
Given you have postgresql running in local host (port=5432), and create a user `tmp`.
git clone this project in the same host, then just run it:
```
cargo run
```