so://phie

verbal

A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal

blob: 3dda45b163099307630876751369d1a5541f15d9 (404 bytes)[doc][blame][raw]

1mod model;

2

3use sqlx::postgres::PgPool;

4

5#[tokio::main]

6async fn main() {

7 let database_url = "postgres://typable:De24Si98@192.168.2.3:9748/verbal?sslmode=disable";

8 let pool = PgPool::connect(database_url).await.unwrap();

9 let accounts = sqlx::query_as::<_, model::Account>("SELECT * FROM account")

10 .fetch_all(&pool)

11 .await

12 .unwrap();

13 println!("{:#?}", accounts);

14}