format-sql-query 0.4.0

Collection of types and helpers for building hopefully correctly escaped SQL queries
Documentation
  • Coverage
  • 91.11%
    41 out of 45 items documented1 out of 36 items with examples
  • Size
  • Source code size: 20.79 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 8.23 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jpastuszek

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'