Open abenhamdine opened 7 years ago
It's just a missing feature. :/ I need to support that, just haven't had the time yet.
I'm using sql-template in my source code which is really nice, so having this feature would be a big bonus. As a workaround I'm currently using:
const {text, values} = SQL`
SELECT
event_id,
user_id,
data->>'sessionDateTime' AS session_date_time,
data
FROM event
WHERE data->>'sessionDateTime' >= ${beginDateTime}
AND data->>'sessionDateTime' <= ${endDateTime}
`;
const query = new QueryStream(text, values)
Hi Brianc, and thx for this great module !
Unlike pg.Client, QueryStream doesn't seem to work when a QueryConfig is passed, ie an object as :
I get the following error :
Is it a bug or a this feature is missing ?
Thx by advance.