Closed
Description
When setting up sqlboiler using boil.SetDB(db)
we can use global variants of methods for accessing data instead of passing a *sql.DB
pointer around. Generated relationships between models do not have a global variant.
What I would expect is that for each AddX, SetX, RemoveX there would be a G variant AddXG, SetXG, RemvoeXG.
As it is I started using the G variants to avoid passing an *sql.DB
instance to all my structs, but in order to use relationships the struct must have knowledge of the DB object anyway.
Metadata
Metadata
Assignees
Labels
No labels