format-sql-query

Crates.ioformat-sql-query
lib.rsformat-sql-query
version0.4.0
sourcesrc
created_at2019-08-28 10:08:09.049557
updated_at2020-06-23 15:02:41.923294
descriptionCollection of types and helpers for building hopefully correctly escaped SQL queries
homepage
repositoryhttps://git.sr.ht/~jpastuszek/format-sql-query
max_upload_size
id160313
size20,707
Jakub Pastuszek (jpastuszek)

documentation

https://docs.rs/format-sql-query

README

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'
Commit count: 0

cargo fmt