sea_query::query

Trait QueryStatementBuilder

source
pub trait QueryStatementBuilder: Debug {
    // Required methods
    fn build_collect_any_into(
        &self,
        query_builder: &dyn QueryBuilder,
        sql: &mut dyn SqlWriter,
    );
    fn into_sub_query_statement(self) -> SubQueryStatement;

    // Provided methods
    fn build_any(&self, query_builder: &dyn QueryBuilder) -> (String, Values) { ... }
    fn build_collect_any(
        &self,
        query_builder: &dyn QueryBuilder,
        sql: &mut dyn SqlWriter,
    ) -> String { ... }
}

Required Methods§

source

fn build_collect_any_into( &self, query_builder: &dyn QueryBuilder, sql: &mut dyn SqlWriter, )

Build corresponding SQL statement into the SqlWriter for certain database backend and collect query parameters

source

fn into_sub_query_statement(self) -> SubQueryStatement

Provided Methods§

source

fn build_any(&self, query_builder: &dyn QueryBuilder) -> (String, Values)

Build corresponding SQL statement for certain database backend and collect query parameters into a vector

source

fn build_collect_any( &self, query_builder: &dyn QueryBuilder, sql: &mut dyn SqlWriter, ) -> String

Build corresponding SQL statement for certain database backend and collect query parameters

Implementors§