taitan_orm

Trait SqlGenerator

Source
pub trait SqlGenerator {
Show 21 methods // Provided methods fn get_wrap_char(&self) -> char { ... } fn get_place_holder(&self) -> char { ... } fn pg_post_process(&self, origin_sql: String) -> String { ... } fn post_process(&self, origin: String) -> String { ... } fn get_last_row_id_sql(&self) -> &'static str { ... } fn get_exists_sql<M: Mutation>( &self, primary: &dyn Unique<Mutation = M>, ) -> String { ... } fn get_select_sql<M: Mutation>( &self, selection: &dyn Selection, primary: &dyn Unique<Mutation = M>, ) -> String { ... } fn get_count_table_sql(&self, table_name: &str) -> String { ... } fn get_count_sql(&self, location: &dyn Location) -> String { ... } fn get_page_sql(&self, page: &Option<&Pagination>) -> String { ... } fn get_order_by_sql(&self, order_by: &Option<&dyn OrderBy>) -> String { ... } fn get_where_sql(&self, location: &Option<&dyn Location>) -> String { ... } fn get_search_paged_sql( &self, selection: &dyn Selection, location: &Option<&dyn Location>, order_by: &Option<&dyn OrderBy>, page: &Option<&Pagination>, ) -> String { ... } fn get_page_joined_search_sql( &self, joined_conds: &JoinedConditions, locations: &Vec<&dyn Location>, _order_by: &Option<&dyn OrderBy>, selections: &Vec<&dyn Selection>, _page: &Pagination, ) -> String { ... } fn get_insert_sql(&self, entity: &dyn Entity) -> String { ... } fn get_create_sql(&self, entity: &dyn Entity) -> String { ... } fn get_upsert_sql(&self, entity: &dyn Entity) -> String { ... } fn get_update_sql<M: Mutation>( &self, mutation: &M, unique: &dyn Unique<Mutation = M>, ) -> String { ... } fn get_change_sql<L: Location>( &self, mutation: &dyn Mutation<Location = L>, location: &L, ) -> String { ... } fn get_delete_sql<M: Mutation>( &self, primary: &dyn Unique<Mutation = M>, ) -> String { ... } fn get_purify_sql(&self, location: &dyn Location) -> String { ... }
}

Provided Methods§

Source

fn get_wrap_char(&self) -> char

Source

fn get_place_holder(&self) -> char

Source

fn pg_post_process(&self, origin_sql: String) -> String

Source

fn post_process(&self, origin: String) -> String

Source

fn get_last_row_id_sql(&self) -> &'static str

Source

fn get_exists_sql<M: Mutation>( &self, primary: &dyn Unique<Mutation = M>, ) -> String

Source

fn get_select_sql<M: Mutation>( &self, selection: &dyn Selection, primary: &dyn Unique<Mutation = M>, ) -> String

Source

fn get_count_table_sql(&self, table_name: &str) -> String

Source

fn get_count_sql(&self, location: &dyn Location) -> String

Source

fn get_page_sql(&self, page: &Option<&Pagination>) -> String

Source

fn get_order_by_sql(&self, order_by: &Option<&dyn OrderBy>) -> String

Source

fn get_where_sql(&self, location: &Option<&dyn Location>) -> String

Source

fn get_search_paged_sql( &self, selection: &dyn Selection, location: &Option<&dyn Location>, order_by: &Option<&dyn OrderBy>, page: &Option<&Pagination>, ) -> String

Source

fn get_page_joined_search_sql( &self, joined_conds: &JoinedConditions, locations: &Vec<&dyn Location>, _order_by: &Option<&dyn OrderBy>, selections: &Vec<&dyn Selection>, _page: &Pagination, ) -> String

Source

fn get_insert_sql(&self, entity: &dyn Entity) -> String

Source

fn get_create_sql(&self, entity: &dyn Entity) -> String

Source

fn get_upsert_sql(&self, entity: &dyn Entity) -> String

Source

fn get_update_sql<M: Mutation>( &self, mutation: &M, unique: &dyn Unique<Mutation = M>, ) -> String

Source

fn get_change_sql<L: Location>( &self, mutation: &dyn Mutation<Location = L>, location: &L, ) -> String

Source

fn get_delete_sql<M: Mutation>( &self, primary: &dyn Unique<Mutation = M>, ) -> String

Source

fn get_purify_sql(&self, location: &dyn Location) -> String

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§