diff --git a/examples/async/Cargo.toml b/examples/async/Cargo.toml index 4cf115f..ca46448 100644 --- a/examples/async/Cargo.toml +++ b/examples/async/Cargo.toml @@ -19,6 +19,6 @@ path = "../../rusqlite_migration" features = ["async-tokio-rusqlite"] [dependencies.rusqlite] -version = "=0.29.0" +version = "=0.30.0" default-features = false features = [] diff --git a/examples/from-directory/Cargo.toml b/examples/from-directory/Cargo.toml index 368378e..8440c99 100644 --- a/examples/from-directory/Cargo.toml +++ b/examples/from-directory/Cargo.toml @@ -17,6 +17,6 @@ mktemp = "0.5" include_dir = "0.7.3" [dependencies.rusqlite] -version = "=0.29.0" +version = "=0.30.0" default-features = false features = [] diff --git a/examples/simple/Cargo.toml b/examples/simple/Cargo.toml index ab7406a..e931a32 100644 --- a/examples/simple/Cargo.toml +++ b/examples/simple/Cargo.toml @@ -14,6 +14,6 @@ lazy_static = "1.4.0" mktemp = "0.5" [dependencies.rusqlite] -version = "=0.29.0" +version = "=0.30.0" default-features = false features = [] diff --git a/rusqlite_migration/Cargo.toml b/rusqlite_migration/Cargo.toml index c94fe5f..5eb4c8d 100644 --- a/rusqlite_migration/Cargo.toml +++ b/rusqlite_migration/Cargo.toml @@ -23,11 +23,11 @@ from-directory = ["dep:include_dir"] [dependencies] include_dir = { version = "0.7.3", optional = true } tokio = { version = "1.25", features = ["macros"], optional = true } -tokio-rusqlite = { version = "0.4.0", optional = true } +tokio-rusqlite = { version = "0.5.0", optional = true } log = "0.4" [dependencies.rusqlite] -version = "=0.29.0" +version = "=0.30.0" default-features = false features = [] diff --git a/rusqlite_migration/src/asynch.rs b/rusqlite_migration/src/asynch.rs index 50cf789..42bf1b7 100644 --- a/rusqlite_migration/src/asynch.rs +++ b/rusqlite_migration/src/asynch.rs @@ -103,8 +103,8 @@ impl AsyncMigrations { /// migrations.to_latest(&mut conn).await.unwrap(); /// /// // You can then insert values in the database - /// conn.call(|conn| conn.execute("INSERT INTO animals (name) VALUES (?)", ["dog"])).await.unwrap(); - /// conn.call(|conn| conn.execute("INSERT INTO food (name) VALUES (?)", ["carrot"])).await.unwrap(); + /// conn.call_unwrap(|conn| conn.execute("INSERT INTO animals (name) VALUES (?)", ["dog"])).await.unwrap(); + /// conn.call_unwrap(|conn| conn.execute("INSERT INTO food (name) VALUES (?)", ["carrot"])).await.unwrap(); /// # }); /// ``` #[allow(clippy::missing_errors_doc)] diff --git a/rusqlite_migration_tests/Cargo.toml b/rusqlite_migration_tests/Cargo.toml index 767140c..23abef2 100644 --- a/rusqlite_migration_tests/Cargo.toml +++ b/rusqlite_migration_tests/Cargo.toml @@ -15,7 +15,7 @@ publish = false [dependencies] tokio = { version = "1.25", features = ["macros"] } -tokio-rusqlite = { version = "0.4.0" } +tokio-rusqlite = { version = "0.5.0" } log = "0.4" [dependencies.rusqlite_migration] @@ -23,7 +23,7 @@ path = "../rusqlite_migration" features = ["async-tokio-rusqlite", "from-directory"] [dependencies.rusqlite] -version = "=0.29.0" +version = "=0.30.0" default-features = false features = [] diff --git a/rusqlite_migration_tests/tests/async_integration_test.rs b/rusqlite_migration_tests/tests/async_integration_test.rs index 565bee4..e556d9a 100644 --- a/rusqlite_migration_tests/tests/async_integration_test.rs +++ b/rusqlite_migration_tests/tests/async_integration_test.rs @@ -23,7 +23,7 @@ async fn main_test() { migrations.current_version(&conn).await ); - conn.call(|c| { + conn.call_unwrap(|c| { c.execute( "INSERT INTO friend (name, birthday) VALUES (?1, ?2)", params!["John", "1970-01-01"], @@ -46,7 +46,7 @@ async fn main_test() { migrations.current_version(&conn).await ); - conn.call(|c| { + conn.call_unwrap(|c| { c.execute( "INSERT INTO friend (name, birth) VALUES (?1, ?2)", params!["Alice", "2000-01-01"], @@ -68,7 +68,7 @@ async fn main_test() { migrations.current_version(&conn).await ); - conn.call(|c| { + conn.call_unwrap(|c| { c.execute( "INSERT INTO friend (name, birth) VALUES (?1, ?2)", params!["Alice", "2000-01-01"], diff --git a/rusqlite_migration_tests/tests/async_up_and_down.rs b/rusqlite_migration_tests/tests/async_up_and_down.rs index fa9db4a..e7c6e2c 100644 --- a/rusqlite_migration_tests/tests/async_up_and_down.rs +++ b/rusqlite_migration_tests/tests/async_up_and_down.rs @@ -87,7 +87,7 @@ async fn main_test() { migrations.to_version(&mut conn, 5).await.unwrap(); - conn.call(|conn| { + conn.call_unwrap(|conn| { conn.execute( "INSERT INTO habitats (id, name) VALUES (?1, ?2)", params![0, "Forest"], @@ -119,7 +119,7 @@ async fn main_test() { // the table is gone now assert!(conn - .call(|conn| { + .call_unwrap(|conn| { conn.execute("INSERT INTO habitats (name) VALUES (?1)", params!["Beach"]) }) .await