pub struct Statement {
pub sql: String,
pub values: Values,
}Expand description
A rendered SQL statement: (sql, values) with ? placeholders, produced
by rendering a sea-query query for a dialect. Modules build queries with
sea-query and render through the helpers on this type (or let adapters do
it); adapters bind values positionally.
Fields§
§sql: String§values: ValuesImplementations§
Source§impl Statement
impl Statement
Sourcepub fn with_values(sql: impl Into<String>, values: Vec<SeaValue>) -> Self
pub fn with_values(sql: impl Into<String>, values: Vec<SeaValue>) -> Self
A statement with positional ? values.
Sourcepub fn render(query: &impl QueryStatementBuilder) -> Self
pub fn render(query: &impl QueryStatementBuilder) -> Self
Renders a sea-query statement (select/insert/update/delete) with the SQLite dialect. The portable subset renders identically for D1, rusqlite and (later) Postgres (ADR 0004).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnsafeUnpin for Statement
impl UnwindSafe for Statement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more