sql
sql.identifier
sql.values
sql.raw
sql.default
toSQL
stream
chunked
.chunked() lets you stream query result rows in chunks:
.chunked()
const result = sql`select * from users`.chunked(2); for await (const chunk of result) { console.log(chunk); }
[ { id: 1, name: "Alex", }, { id: 2, name: "Oleksii", } ] …