Skip to content

Two custom queries return the same columns #1052

@kevinburke1

Description

@kevinburke1

If I have two queries that each select the same subset of columns on the same table, sqlc creates two different structs instead of one. Is there a way to get them to return the same struct?

We could potentially do this with type aliases in the same package.

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