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:
Austin Bonander
2023-07-03 14:37:37 -07:00
committed by GitHub
parent 1bdbedabdc
commit dcb58b0e2c
26 changed files with 1392 additions and 107 deletions

View File

@@ -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"]}

View File

@@ -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();