[][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'

Structs

Column

Represents table column name.

MapQuotedData

Wrapper around QuotedData that maps its content.

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.

Table

Represents table name with optional schema.