perdumonocle / sql-builder

Simple SQL code generator.
MIT License
123 stars 13 forks source link

Adding compound WHERE statement example #13

Open thepacketgeek opened 2 years ago

thepacketgeek commented 2 years ago

This adds an example for how to accomplish #12 to the examples dir:

$ cargo run --example compound_where -q
SELECT * FROM table WHERE field1 = '' OR ((field2 = '') AND (field3 = ''));