questdb / py-questdb-client

Python client for QuestDB InfluxDB Line Protocol
https://py-questdb-client.readthedocs.io
Apache License 2.0
55 stars 10 forks source link

use sqlx::postgres::PgPoolOptions; #42

Closed strongguy16 closed 1 year ago

strongguy16 commented 1 year ago
          use sqlx::postgres::PgPoolOptions;

[tokio::main]

async fn main() -> Result<(), sqlx::Error> { let pool = PgPoolOptions::new() .max_connections(1) .connect("postgres://admin:quest@myquestdb.com:8812/qdb") .await?;

sqlx::query("SELECT 150");
.execute(&pool);
.await?;

Ok(())

}

Originally posted by @strongguy16 in https://github.com/questdb/questdb/issues/3204#issuecomment-1519029022

amunra commented 1 year ago

Closing as this is not relevant to the Python client which does not interact with QuestDB via SQL. Compatibility issues should be reported directly with the core QuestDB project.