kingluo / tokio-postgres-hello-world

hello world example for tokio-postgres

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

hello world example for tokio-postgres

License:Apache License 2.0


Languages

Language:Rust 100.0%