Skip to content

$cursorStreamRaw funtionality #5

@Joandres-Lara

Description

@Joandres-Lara

Hi, can be added new method for get bached stream with raw queries like:

const stream = await db.$cursorStreamRaw`
 select sum(amount) from account
 group by "userId"
 having sum(amount) > 0
`
for await (const value of stream){
 console.log(value.sum)
}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions