pub trait SqlConn {
// Required methods
fn query(&mut self, sql: &str) -> Result<Table>;
fn execute(&mut self, sql: &str, params: &[Cell]) -> Result<()>;
fn placeholder(&self, n: usize) -> String;
fn real_type(&self) -> &'static str;
}Expand description
The operations import_query/export_measure/refresh_sql_measure need
from a connection. Implemented for &mut Backend (SQLite or Postgres) and,
for backward compatibility with SQLite-only callers, &rusqlite::Connection.
Required Methods§
fn query(&mut self, sql: &str) -> Result<Table>
fn execute(&mut self, sql: &str, params: &[Cell]) -> Result<()>
Sourcefn placeholder(&self, n: usize) -> String
fn placeholder(&self, n: usize) -> String
Positional placeholder for the n-th (1-based) parameter.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".