Skip to main content

ToSqlContext

Trait ToSqlContext 

Source
pub trait ToSqlContext {
    // Required methods
    fn get_table_name(&self, id: TableInternalId) -> &str;
    fn get_column_name(&self, table_id: TableInternalId, col_idx: usize) -> &str;
}
Expand description

Context to be used in ToSqlString

Required Methods§

Source

fn get_table_name(&self, id: TableInternalId) -> &str

Given an id, get the table name

Currently not considering aliases

Source

fn get_column_name(&self, table_id: TableInternalId, col_idx: usize) -> &str

Given a table id and a column index, get the column name

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§