Skip to content

Pre-column Type Override Array Type #1647

@maohieng

Description

@maohieng

What do you want to change?

For example, a column video of type JSONB can be an override its type to support a "pointer type" using *:
sqlc.yaml

overrides:
    - column: "mytable.video"
        go_type: "*mypackage/custom.Video"

then

type mytable struct {
    video   *mypackage/custom.Video
}

Is there any possible way to support an "array type"? if a column videos of type JSONB will be override like this:

type mytable struct {
    videos   []mypackage/custom.Video
}

What database engines need to be changed?

PostgreSQL

What programming language backends need to be changed?

Go

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions