Skip to content

Commit

Permalink
reduce dev dep (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
fakeshadow authored Oct 1, 2024
1 parent da46ef0 commit 47337d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ quinn = { version = "0.11", features = ["ring"], optional = true }
rustls-pemfile = { version = "2", optional = true }

[dev-dependencies]
xitca-postgres = { version = "0.2", features = ["compat"] }
xitca-postgres-codegen = "0.1"
bb8 = "0.8.5"
futures = { version = "0.3", default-features = false }
Expand Down
5 changes: 1 addition & 4 deletions postgres/src/statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,7 @@ mod test {

tokio::task::spawn(drv.into_future());

"CREATE TEMPORARY TABLE foo (id SERIAL, name TEXT); INSERT INTO foo (name) VALUES ('alice'), ('bob'), ('charlie');"
.execute(&cli)
.await
.unwrap();
std::path::Path::new("./samples/test.sql").execute(&cli).await.unwrap();

let stmt = Statement::named("SELECT id, name FROM foo ORDER BY id", &[])
.execute(&cli)
Expand Down

0 comments on commit 47337d1

Please sign in to comment.