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

Not always query for all select statements #2067

Unanswered
engAmirEng asked this question in Q&A
Discussion options

Hey guys,
I'm not looking for dynamic query, I just want to not always fill the struct with all it's attributes and just dynamically query for a sub set of them, is that possible? Maybe some hack into it?

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

If you can write a SQL query for it, sqlc can handle it.

Maybe you could provide us with a few example queries?

You must be logged in to vote
1 reply
Comment options

I mean, I have a query and I need to select different sub set of it's columns in different parts of my code, how is it possible?

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

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