Skip to content

Ignore table partitions #3786

Open
Open
@ptman

Description

@ptman

What do you want to change?

Let's suppose we have a time-range partitioned table called events. And then monthly partitions.

  • events
  • events_p20250101
  • events_p20250201

sqlc generates structs for the partitions(type Event struct, type EventP20250101 struct, type EventP20250201 struct, ...), even though they're an implementation detail of the schema. How can one make sqlc ignore them?

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