sqlc-dev / sqlc

Generate type-safe code from SQL
https://sqlc.dev
MIT License
13.58k stars 812 forks source link

Generate ValidColumns Slice to be used by other packages #3654

Open Smithx10 opened 1 month ago

Smithx10 commented 1 month ago

What do you want to change?

Currently, while implementing a Dynamic Query using PGX / Squirrel I find myself writing an updating a var value that contains a slice of the valid column names.

It would be nice to have a slice in sqlc that contained all the column names in it so that its easy to do "slices.Contains"

What database engines need to be changed?

No response

What programming language backends need to be changed?

No response