Hi All,
We've a complex and nested Domain Object *User*
type User struct {
Profile *Profile
// ......
// ......
}
stored in a SQL database as
id, user_name, email, image(*Profile*), category(Profile)
Using Clean Architecture by having SQL Database behind an interface, how
can we best implement querying dynamic set of fields?
1. If we use database column names inside Service layer, it violates Clean
Architecture
2. To maintain the integrity of these layers, we might need to use
reflection to figure out the column name? or is there any better way to
achieve it using code generation?
Regards
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/0de24593-ab88-40dc-b529-72874920623fn%40googlegroups.com.