[−][src]Trait quaint::prelude::Queryable
Represents a connection or a transaction that can be queried.
Required methods
ⓘImportant traits for DBIO<'a, T>fn query<'a>(&'a self, q: Query<'a>) -> DBIO<'a, ResultSet>
ⓘImportant traits for DBIO<'a, T>
Execute the given query.
ⓘImportant traits for DBIO<'a, T>fn query_raw<'a>(
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue<'a>]
) -> DBIO<'a, ResultSet>
ⓘImportant traits for DBIO<'a, T>
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue<'a>]
) -> DBIO<'a, ResultSet>
Execute a query given as SQL, interpolating the given parameters.
ⓘImportant traits for DBIO<'a, T>fn execute<'a>(&'a self, q: Query<'a>) -> DBIO<'a, u64>
ⓘImportant traits for DBIO<'a, T>
Execute the given query, returning the number of affected rows.
ⓘImportant traits for DBIO<'a, T>fn execute_raw<'a>(
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue<'a>]
) -> DBIO<'a, u64>
ⓘImportant traits for DBIO<'a, T>
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue<'a>]
) -> DBIO<'a, u64>
Execute a query given as SQL, interpolating the given parameters and returning the number of affected rows.
ⓘImportant traits for DBIO<'a, T>fn raw_cmd<'a>(&'a self, cmd: &'a str) -> DBIO<'a, ()>
ⓘImportant traits for DBIO<'a, T>
Run a command in the database, for queries that can't be run using prepared statements.
Provided methods
ⓘImportant traits for DBIO<'a, T>fn select<'a>(&'a self, q: Select<'a>) -> DBIO<'a, ResultSet>
ⓘImportant traits for DBIO<'a, T>
Execute a SELECT
query.
ⓘImportant traits for DBIO<'a, T>fn insert<'a>(&'a self, q: Insert<'a>) -> DBIO<'a, ResultSet>
ⓘImportant traits for DBIO<'a, T>
Execute an INSERT
query.
ⓘImportant traits for DBIO<'a, T>fn update<'a>(&'a self, q: Update<'a>) -> DBIO<'a, u64>
ⓘImportant traits for DBIO<'a, T>
Execute an UPDATE
query, returning the number of affected rows.
ⓘImportant traits for DBIO<'a, T>fn delete<'a>(&'a self, q: Delete<'a>) -> DBIO<'a, ()>
ⓘImportant traits for DBIO<'a, T>
Execute a DELETE
query, returning the number of affected rows.
Implementors
impl Queryable for Mysql
[src]
ⓘImportant traits for DBIO<'a, T>fn query<'a>(&'a self, q: Query<'a>) -> DBIO<'a, ResultSet>
[src]
ⓘImportant traits for DBIO<'a, T>
ⓘImportant traits for DBIO<'a, T>fn execute<'a>(&'a self, q: Query<'a>) -> DBIO<'a, u64>
[src]
ⓘImportant traits for DBIO<'a, T>
ⓘImportant traits for DBIO<'a, T>fn query_raw<'a>(
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue]
) -> DBIO<'a, ResultSet>
[src]
ⓘImportant traits for DBIO<'a, T>
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue]
) -> DBIO<'a, ResultSet>
ⓘImportant traits for DBIO<'a, T>fn execute_raw<'a>(
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue<'a>]
) -> DBIO<'a, u64>
[src]
ⓘImportant traits for DBIO<'a, T>
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue<'a>]
) -> DBIO<'a, u64>
ⓘImportant traits for DBIO<'a, T>fn raw_cmd<'a>(&'a self, cmd: &'a str) -> DBIO<'a, ()>
[src]
ⓘImportant traits for DBIO<'a, T>
impl Queryable for PostgreSql
[src]
ⓘImportant traits for DBIO<'a, T>fn query<'a>(&'a self, q: Query<'a>) -> DBIO<'a, ResultSet>
[src]
ⓘImportant traits for DBIO<'a, T>
ⓘImportant traits for DBIO<'a, T>fn execute<'a>(&'a self, q: Query<'a>) -> DBIO<'a, u64>
[src]
ⓘImportant traits for DBIO<'a, T>
ⓘImportant traits for DBIO<'a, T>fn query_raw<'a>(
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue<'a>]
) -> DBIO<'a, ResultSet>
[src]
ⓘImportant traits for DBIO<'a, T>
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue<'a>]
) -> DBIO<'a, ResultSet>
ⓘImportant traits for DBIO<'a, T>fn execute_raw<'a>(
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue<'a>]
) -> DBIO<'a, u64>
[src]
ⓘImportant traits for DBIO<'a, T>
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue<'a>]
) -> DBIO<'a, u64>
ⓘImportant traits for DBIO<'a, T>fn raw_cmd<'a>(&'a self, cmd: &'a str) -> DBIO<'a, ()>
[src]
ⓘImportant traits for DBIO<'a, T>
impl Queryable for Sqlite
[src]
ⓘImportant traits for DBIO<'a, T>fn query<'a>(&'a self, q: Query<'a>) -> DBIO<'a, ResultSet>
[src]
ⓘImportant traits for DBIO<'a, T>
ⓘImportant traits for DBIO<'a, T>fn execute<'a>(&'a self, q: Query<'a>) -> DBIO<'a, u64>
[src]
ⓘImportant traits for DBIO<'a, T>
ⓘImportant traits for DBIO<'a, T>fn query_raw<'a>(
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue]
) -> DBIO<'a, ResultSet>
[src]
ⓘImportant traits for DBIO<'a, T>
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue]
) -> DBIO<'a, ResultSet>
ⓘImportant traits for DBIO<'a, T>fn execute_raw<'a>(
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue<'a>]
) -> DBIO<'a, u64>
[src]
ⓘImportant traits for DBIO<'a, T>
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue<'a>]
) -> DBIO<'a, u64>
ⓘImportant traits for DBIO<'a, T>fn raw_cmd<'a>(&'a self, cmd: &'a str) -> DBIO<'a, ()>
[src]
ⓘImportant traits for DBIO<'a, T>
impl Queryable for PooledConnection
[src]
ⓘImportant traits for DBIO<'a, T>fn query<'a>(&'a self, q: Query<'a>) -> DBIO<'a, ResultSet>
[src]
ⓘImportant traits for DBIO<'a, T>
ⓘImportant traits for DBIO<'a, T>fn execute<'a>(&'a self, q: Query<'a>) -> DBIO<'a, u64>
[src]
ⓘImportant traits for DBIO<'a, T>
ⓘImportant traits for DBIO<'a, T>fn query_raw<'a>(
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue]
) -> DBIO<'a, ResultSet>
[src]
ⓘImportant traits for DBIO<'a, T>
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue]
) -> DBIO<'a, ResultSet>
ⓘImportant traits for DBIO<'a, T>fn execute_raw<'a>(
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue]
) -> DBIO<'a, u64>
[src]
ⓘImportant traits for DBIO<'a, T>
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue]
) -> DBIO<'a, u64>
ⓘImportant traits for DBIO<'a, T>fn raw_cmd<'a>(&'a self, cmd: &'a str) -> DBIO<'a, ()>
[src]
ⓘImportant traits for DBIO<'a, T>
impl Queryable for Quaint
[src]
ⓘImportant traits for DBIO<'a, T>fn query<'a>(&'a self, q: Query<'a>) -> DBIO<'a, ResultSet>
[src]
ⓘImportant traits for DBIO<'a, T>
ⓘImportant traits for DBIO<'a, T>fn execute<'a>(&'a self, q: Query<'a>) -> DBIO<'a, u64>
[src]
ⓘImportant traits for DBIO<'a, T>
ⓘImportant traits for DBIO<'a, T>fn query_raw<'a>(
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue]
) -> DBIO<'a, ResultSet>
[src]
ⓘImportant traits for DBIO<'a, T>
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue]
) -> DBIO<'a, ResultSet>
ⓘImportant traits for DBIO<'a, T>fn execute_raw<'a>(
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue]
) -> DBIO<'a, u64>
[src]
ⓘImportant traits for DBIO<'a, T>
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue]
) -> DBIO<'a, u64>
ⓘImportant traits for DBIO<'a, T>fn raw_cmd<'a>(&'a self, cmd: &'a str) -> DBIO<'a, ()>
[src]
ⓘImportant traits for DBIO<'a, T>
impl<'a> Queryable for Transaction<'a>
[src]
ⓘImportant traits for DBIO<'a, T>fn query<'b>(&'b self, q: Query<'b>) -> DBIO<'b, ResultSet>
[src]
ⓘImportant traits for DBIO<'a, T>
ⓘImportant traits for DBIO<'a, T>fn execute<'b>(&'b self, q: Query<'b>) -> DBIO<'b, u64>
[src]
ⓘImportant traits for DBIO<'a, T>
ⓘImportant traits for DBIO<'a, T>fn query_raw<'b>(
&'b self,
sql: &'b str,
params: &'b [ParameterizedValue]
) -> DBIO<'b, ResultSet>
[src]
ⓘImportant traits for DBIO<'a, T>
&'b self,
sql: &'b str,
params: &'b [ParameterizedValue]
) -> DBIO<'b, ResultSet>
ⓘImportant traits for DBIO<'a, T>fn execute_raw<'b>(
&'b self,
sql: &'b str,
params: &'b [ParameterizedValue<'b>]
) -> DBIO<'b, u64>
[src]
ⓘImportant traits for DBIO<'a, T>
&'b self,
sql: &'b str,
params: &'b [ParameterizedValue<'b>]
) -> DBIO<'b, u64>
ⓘImportant traits for DBIO<'a, T>fn raw_cmd<'b>(&'b self, cmd: &'b str) -> DBIO<'b, ()>
[src]
ⓘImportant traits for DBIO<'a, T>