-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Labels
Milestone
Description
We need to be able to handle queries like this:
const query = `
CREATE TABLE ids(id integer);
INSERT INTO ids(id) values(1);
INSERT INTO ids(id) values(2);
`;
await client.query(query);I'm not sure how to nicely handle results, currently QueryResult has rows property that stores data returned from query. One idea is to subclass QueryResult and create MultiQueryResult that has slight different API and leave it up to user to handle that properly.
Comments welcome