[−][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 |
Object | Object like table, schema, column etc. |
QuotedData | Strings and other data in single quotes. |
Table | Represents table name with optional schema. |