felixfbecker / node-sql-template-strings

ES6 tagged template strings for prepared SQL statements 📋
ISC License
610 stars 40 forks source link

feat: Ignore empty and undefined append args #126

Open pke opened 4 years ago

pke commented 4 years ago

This makes conditional chaining even easier:

SQL`SELECT * FROM table`
  .append(where(...))
  .append(orderBy(...))
codecov[bot] commented 4 years ago

Codecov Report

Merging #126 into master will not change coverage. The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #126   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          36     37    +1     
  Branches        6      7    +1     
=====================================
+ Hits           36     37    +1
Impacted Files Coverage Δ
index.js 100% <100%> (ø) :arrow_up: