Skip to content
This repository was archived by the owner on Nov 9, 2021. It is now read-only.

Conversation

@mrtl-srn
Copy link

Example :

const squel = require('squel');

const sql = squel.select();

sql.field('field1')
   .field('field2', 'alias2')
   .field('field1', 'alias1')
   .from('table1');

/* SELECT field1, field2 as alias2, field1 as alias1 FROM table1; */

sql.removeField('alias1')
   .removeField('field2');

/* SELECT field1 FROM table1; */

sql.removeAllFields();

/* SELECT * FROM table1; */

@codecov
Copy link

codecov bot commented Jan 17, 2018

Codecov Report

Merging #344 into master will decrease coverage by 0.23%.
The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #344      +/-   ##
==========================================
- Coverage   81.31%   81.07%   -0.24%     
==========================================
  Files           2        2              
  Lines        2863     2885      +22     
  Branches      635      639       +4     
==========================================
+ Hits         2328     2339      +11     
- Misses        535      546      +11
Impacted Files Coverage Δ
dist/squel.js 71.8% <0%> (-0.49%) ⬇️
dist/squel-basic.js 93.44% <100%> (+0.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 579f760...a52e733. Read the comment docs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant