Crates.io | format-sql-query |
lib.rs | format-sql-query |
version | 0.4.0 |
source | src |
created_at | 2019-08-28 10:08:09.049557 |
updated_at | 2020-06-23 15:02:41.923294 |
description | Collection of types and helpers for building hopefully correctly escaped SQL queries |
homepage | |
repository | https://git.sr.ht/~jpastuszek/format-sql-query |
max_upload_size | |
id | 160313 |
size | 20,707 |
Collection of types and helpers for building hopefully correctly escaped SQL queries.
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'