mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 16:44:07 +00:00
0.7.0 release (#2575)
* WIP preparing 0.7.0 release * fix: re-enable examples * fix doctests in `sqlx-core` * cherry-pick CHANGELOG entry for 0.6.3 * add actions workflow for examples * fix(cli): close connection after running migrations * fix examples * fix(sqlite): fix parsing of URLs via `Any` * fix(example): don't let Postgres `listen` example run forever * fix Postgres `transaction` example
This commit is contained in:
@@ -9,4 +9,4 @@ anyhow = "1.0"
|
||||
futures = "0.3"
|
||||
sqlx = { path = "../../../", features = ["sqlite", "runtime-tokio-native-tls"] }
|
||||
structopt = "0.3"
|
||||
tokio = { version = "1.20.0", features = ["macros"]}
|
||||
tokio = { version = "1.20.0", features = ["rt", "macros"]}
|
||||
|
||||
@@ -14,7 +14,7 @@ enum Command {
|
||||
Done { id: i64 },
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
#[tokio::main(flavor = "current_thread")]
|
||||
async fn main() -> anyhow::Result<()> {
|
||||
let args = Args::from_args_safe()?;
|
||||
let pool = SqlitePool::connect(&env::var("DATABASE_URL")?).await?;
|
||||
@@ -53,7 +53,7 @@ VALUES ( ?1 )
|
||||
"#,
|
||||
description
|
||||
)
|
||||
.execute(&mut conn)
|
||||
.execute(&mut *conn)
|
||||
.await?
|
||||
.last_insert_rowid();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user