background-jobs/examples/postgres-example/src/main.rs

10 lines
270 B
Rust

use background_jobs::postgres::Storage;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let storage =
Storage::connect("postgres://postgres:postgres@localhost:5432/db".parse()?).await?;
println!("Hello, world!");
Ok(())
}