Make it clear bind_in is not public, and inline functions passing large arrays by value to avoid too much copying

This commit is contained in:
Thom Chiovoloni
2021-01-31 15:40:55 -08:00
parent 2e08f8b31d
commit 19b0772f3f
2 changed files with 11 additions and 10 deletions

View File

@@ -82,7 +82,7 @@ impl Statement<'_> {
/// underlying SQLite call fails.
#[inline]
pub fn execute<P: Params>(&mut self, params: P) -> Result<usize> {
params.bind_in(self)?;
params.__bind_in(self)?;
self.execute_with_bound_parameters()
}
@@ -221,7 +221,7 @@ impl Statement<'_> {
#[inline]
pub fn query<P: Params>(&mut self, params: P) -> Result<Rows<'_>> {
self.check_readonly()?;
params.bind_in(self)?;
params.__bind_in(self)?;
Ok(Rows::new(self))
}