mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
feat: add bind_unchecked to Query and QueryAs
This commit is contained in:
parent
d079c021a8
commit
163d5cb1b3
@ -26,6 +26,11 @@ impl<'q, 'a, Db: Database, Rt: Runtime> Query<'q, 'a, Db, Rt> {
|
||||
self.arguments.add(value);
|
||||
self
|
||||
}
|
||||
|
||||
pub fn bind_unchecked<T: 'a + TypeEncode<Db>>(&mut self, value: &'a T) -> &mut Self {
|
||||
self.arguments.add_unchecked(value);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "async")]
|
||||
|
||||
@ -27,6 +27,11 @@ impl<'q, 'a, Db: Database, Rt: Runtime, O> QueryAs<'q, 'a, O, Db, Rt> {
|
||||
self.inner.bind(value);
|
||||
self
|
||||
}
|
||||
|
||||
pub fn bind_unchecked<T: 'a + TypeEncode<Db>>(&mut self, value: &'a T) -> &mut Self {
|
||||
self.inner.bind_unchecked(value);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "async")]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user