CSNW / sql-bricks

Transparent, Schemaless SQL Generation
http://csnw.github.io/sql-bricks
MIT License
205 stars 25 forks source link

Short circuit where null #23

Closed prust closed 10 years ago

prust commented 10 years ago

Made API more convenient by making .where() and .having() pass-through (do nothing) when passed an argument of null, undefined or an empty object. Fixes #22.