[][src]Crate format_sql_query

Collection of types and helpers for building hopefully correctly escaped SQL queries.

Example usage

use format_sql_query::*;

println!("SELECT {} FROM {} WHERE {} = {}", Column("foo bar".into()), Table::with_schema("foo", "baz"), Column("blah".into()), QuotedData("hello 'world' foo"));
// SELECT "foo bar" FROM foo.baz WHERE blah = 'hello ''world'' foo'

Macros

impl_sql_data_type

Structs

Column

Represents table column name.

ColumnSchema

Represents table column name.

ColumnType

Represents table column name.

MapQuotedData

Wrapper around QuotedData that maps its content.

MonetDbDialect
Object

Object like table, schema, column etc.

PredicateStatement

SQL statment with boolean logic.

Predicates

Collection of boolean predicates.

QuotedData

Strings and other data in single quotes.

Schema

Represents database schema name.

SqlServerDialect
Table

Represents table name with optional schema.

Traits

Dialect
SqlDataType