Skip to content

Feature request: nested SQL query #184

@HanchaiN

Description

@HanchaiN

While the append method is a nice way to extend the query, sometimes I want something different. For example,

const book = 'harry potter'
const author = 'J. K. Rowling'
const query = SQL`SELECT author FROM books WHERE category = (${SQL`SELECT category FROM books WHERE name = ${book}`}) AND author = ${author}`

Is something like this possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions