Skip to content

Commit

Permalink
response: Add SQParam for &Vec<u8>
Browse files Browse the repository at this point in the history
  • Loading branch information
ohsayan committed Jun 23, 2024
1 parent 6148487 commit 0e6add5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ All changes in this project will be noted in this file.
### Additions

- Added `FromResponse` for `Vec<Row>`
- Added `SQParam` impl for `&Vec<u8>`

## 0.8.7

Expand Down
5 changes: 5 additions & 0 deletions src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,11 @@ impl SQParam for Vec<u8> {
1
}
}
impl<'a> SQParam for &'a Vec<u8> {
fn append_param(&self, q: &mut Vec<u8>) -> usize {
self.as_slice().append_param(q)
}
}
// str
impl<'a> SQParam for &'a str {
fn append_param(&self, buf: &mut Vec<u8>) -> usize {
Expand Down

0 comments on commit 0e6add5

Please sign in to comment.