balderdashy / waterline-docs

WARNING: The content in this repo is out of date! See https://github.com/balderdashy/sails-docs for the most up-to-date documentation
452 stars 161 forks source link

Get WHERE string apart from other SQL #132

Open Crusader4Christ opened 8 years ago

Crusader4Christ commented 8 years ago

I need to make many manual db-requests, something like SELECT count(d.id) FROM download d JOIN download_history h USING(download_id) WHERE ... and other more complex queries So main part of query can`t be generated by waterline, BUT I want to use waterline where clause builder. How can this be done? It will be good if waterline can return query text or it parts.

OPADA-Eng commented 7 years ago

I need the same thing, Any suggestions ?