~jpastuszek/format-sql-query

Collection of types and helpers for building hopefully correctly escaped SQL queries
use project URL
(cargo-release) start next development iteration 0.4.0
(cargo-release) version 0.4.0

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~jpastuszek/format-sql-query
read/write
git@git.sr.ht:~jpastuszek/format-sql-query

You can also use your local clone with git send-email.

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'