Open
Description
Allow pipelining the some requests in a transaction without requiring that all the requests are pipelined. This would allow selecting to get the id of a row, then issuing multiple statements based on the id of the row in a pipelined fashion.
For example:
await sql.begin(async sql => {
const [movie] = await sql`
SELECT * FROM Movie
WHERE name = 'Star Wars'
`;
return [
sql`
INSERT INTO MovieActor
-- some statement using ${movie.id}
`,
sql`
INSERT INTO MovieReleases
-- some statement using ${movie.id}
`,
// etc
]
})
Metadata
Metadata
Assignees
Labels
No labels