kylefarris / node-querybuilder

Node QueryBuilder Adapter for Node.js (tags: nodejs, node, mysql, active record, activerecord, querybuilder, query builder)
49 stars 19 forks source link

Add overload to select(...) #35

Open Flamenco opened 6 years ago

Flamenco commented 6 years ago

Select supports these 2 syntax:

qb.select('s.id, s.title, s.artist, s.genre')

and

qb.select(['s.id', 's.title', 's.artist', 's.genre'])

but I constantly find myself doing this:

qb.select('s.id', 's.title', 's.artist', 's.genre')

Can we also allow the vararg approach?

kylefarris commented 6 years ago

I could add this option but it won't be for the official v2.0.0 release. I'll add it for v2.1.