How to create a general select repository to fit all kinds of query? #1913
-
I noticed that kataras from iris/v12/_examples/mvc/login/repositories/user_repository.go It seems very smart way to fit many kind of queries and could be reused in every table's repositories. But i have question is: Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
My idea is very close to this PHP framework Laravel's software package |
Beta Was this translation helpful? Give feedback.
-
Hello @spencerchang, The There are many ORMs available in Go language, you don't need to re-invert the wheel, just google "golang database orm package". |
Beta Was this translation helpful? Give feedback.
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".