Skip to content

Commit

Permalink
fix(deps): Updrade sqlx to 0.7.0 and dereference Transaction to inter…
Browse files Browse the repository at this point in the history
…nal connection type

chore(deps): Update dependencies
  • Loading branch information
johnbcodes committed Jul 14, 2023
1 parent f480c99 commit 4b1f1e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ documentation = "https://docs.rs/sqlite-es"
readme = "README.md"

[dependencies]
cqrs-es = "0.4.5"
cqrs-es = "0.4.9"

async-trait = "0.1"
futures = "0.3"
serde = { version = "1.0", features = ["derive"]}
serde_json = "1.0"
sqlx = { version = "0.6", features = [ "json", "runtime-tokio-rustls", "sqlite" ] }
sqlx = { version = "0.7.0", features = [ "json", "runtime-tokio-rustls", "sqlite" ] }
tokio = { version = "1", features = ["rt"] }

[dev-dependencies]
Expand Down
6 changes: 3 additions & 3 deletions src/event_repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ impl SqliteEventRepository {
.bind(current_sequence as i32)
.bind(current_snapshot as i32)
.bind(&aggregate_payload)
.execute(&mut tx)
.execute(&mut *tx)
.await?;
tx.commit().await?;
Ok(())
Expand All @@ -266,7 +266,7 @@ impl SqliteEventRepository {
.bind(A::aggregate_type())
.bind(aggregate_id.as_str())
.bind((current_snapshot - 1) as i32)
.execute(&mut tx)
.execute(&mut *tx)
.await?;
tx.commit().await?;
match result.rows_affected() {
Expand Down Expand Up @@ -333,7 +333,7 @@ impl SqliteEventRepository {
.bind(event_version)
.bind(&payload)
.bind(&metadata)
.execute(&mut *tx)
.execute(&mut **tx)
.await?;
}
Ok(current_sequence)
Expand Down

0 comments on commit 4b1f1e6

Please sign in to comment.