mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-16 12:42:18 +08:00
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:
@@ -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))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user