Skip to content

Commit

Permalink
feat: document and expand query builder
Browse files Browse the repository at this point in the history
elaborates on the API introduced in #1780
  • Loading branch information
abonander committed Apr 11, 2022
1 parent a470682 commit 1c0eb36
Show file tree
Hide file tree
Showing 4 changed files with 324 additions and 32 deletions.
2 changes: 1 addition & 1 deletion sqlx-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,5 @@ hkdf = { version = "0.11.0", optional = true }
event-listener = "2.5.2"

[dev-dependencies]
sqlx = { version = "0.5.11", path = "..", features = ["postgres", "sqlite"] }
sqlx = { version = "0.5.11", path = "..", features = ["postgres", "sqlite", "mysql"] }
tokio = { version = "1", features = ["rt"] }
5 changes: 5 additions & 0 deletions sqlx-core/src/mysql/arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ impl MySqlArguments {
self.null_bitmap[index / 8] |= (1 << (index % 8)) as u8;
}
}

#[doc(hidden)]
pub fn len(&self) -> usize {
self.types.len()
}
}

impl<'q> Arguments<'q> for MySqlArguments {
Expand Down
Loading

0 comments on commit 1c0eb36

Please sign in to comment.