Skip to content

Support selecting tuples (and array of tuples) #35

@schurhammer

Description

@schurhammer

I like to use arrays of tuples to get related items in a single query

e.g. something like

select
  id,
  name,
  array(select (child_id, dob) from children where cats.id = children.parent_id) as children
from cats

Minimal query:

select array(
    select (1, 'a') union
    select (2, 'b') union
    select (3, 'c')
) as tuple_array;

p.s. I'm willing to help implement if you point me in the right direction 🐱

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttype requestA request to add support for a PG type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions