Struct good_ormning::sqlite::Query

source ·
pub struct Query {
    pub name: String,
    pub body: Box<dyn QueryBody>,
    pub res_count: QueryResCount,
    pub res_name: Option<String>,
}
Expand description

This represents an SQL query. A function will be generated which accepts a db connection and query parameters, and returns the query results. Call the new_* functions to get a builder.

Fields§

§name: String§body: Box<dyn QueryBody>§res_count: QueryResCount§res_name: Option<String>

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.