Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How can I ignore table partitions? #3683

Unanswered
ptman asked this question in Q&A
Oct 30, 2024 · 1 comments · 1 reply
Discussion options

(Also asked this on discord, but it seems quite quiet)

Now I get structs for the table (useful) and the partitions (useless)

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

I actually wrapped partition creation in a PL/PgSQL function and since I no longer have CREATE TABLE in the schema, sqlc doesn't create the useless structs. But I guess if sqlc did database introspection instead of parsing the schema file, the problem might return.

You must be logged in to vote
1 reply
Comment options

And now I'm facing this again. Any way to ignore certain tables by regex?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /