Skip to content

How to create a general select repository to fit all kinds of query? #1913

Answered by kataras
spencerchang asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @spencerchang,

The login/repositories/user_repository.go is just an example you can motivated from it.

There are many ORMs available in Go language, you don't need to re-invert the wheel, just google "golang database orm package".

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kataras
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants