~jpastuszek/format-sql-query

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

38960d4 use project URL

9 months ago
~jpastuszek/format-sql-query

New ticket tracker added

9 months ago

Latest Version Documentation License

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()), SchemaTable("foo".into(), "baz".into()), Column("blah".into()), QuotedData("hello 'world' foo"));
// SELECT "foo bar" FROM foo.baz WHERE blah = 'hello ''world'' foo'