tweak type decoding in text mode for floats

This commit is contained in:
Ryan Leckey
2020-03-01 15:17:49 -08:00
parent 4c102f7b0e
commit f18ab2fecb
6 changed files with 29 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
use sqlx::{PgConnection, Connect, Row};
use sqlx::postgres::PgRow;
use sqlx::{Connect, PgConnection, Row};
async fn connect() -> anyhow::Result<PgConnection> {
Ok(PgConnection::connect(dotenv::var("DATABASE_URL")?).await?)

View File

@@ -1,9 +1,7 @@
use futures::TryStreamExt;
use sqlx::{
postgres::PgConnection, Connect, Executor, Row,
};
use std::time::Duration;
use sqlx::postgres::{PgPool, PgRow};
use sqlx::{postgres::PgConnection, Connect, Executor, Row};
use std::time::Duration;
#[cfg_attr(feature = "runtime-async-std", async_std::test)]
#[cfg_attr(feature = "runtime-tokio", tokio::test)]