Open lycifer3 opened 4 years ago
Hi! When you join like that, You will be having rows for a struct like this
type DomainType struct {
Id string `json:"id"`
Domain string `json:"domain"`
Date time.Time `json:"date"`
RedirectDomain sql.NullString `json:"redirect_domain" db:"redirect_domain"`
Date sql.NullTime `json:"redirect_date" db:"date"`
}
I understand that, the question is to get a one-to-many structure
is it possible to create structures one to many db: clickhouse 20.3.5.21
example:
end query:
if this is possible then tell me how, I'm begginer to the golang