Skip to content

Conversation

PillowPillow
Copy link

Hi, like some other peoples, i guess, i needed to stream the result of raw queries.
This pr gives the possibility to perform streaming from raw query by using the where.id criteria if he match the query regex.

I created a temporary adapter for my own usage during this PR or if you don't want to merge it.
https://www.npmjs.com/package/sails-mysql-pillow

Best regards,
Nicolas

@zivc
Copy link

zivc commented Mar 21, 2016

+1 for this.

@zivc
Copy link

zivc commented Mar 21, 2016

Problem, your regex makes the query have to contain SELECT * FROM. Not all queries (especially in enterprise development) can exist like this. Some start with SET, SHOW etc.

Removing the regex or expecting a query param of the options object would be preferable for me.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants