You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've design my function to accept *sql.DB as the parameter. This way it's general enough if in the feature we want to use basic driver or switch between ORM.
The way I do this right now is something like this.
I've design my function to accept *sql.DB as the parameter. This way it's general enough if in the feature we want to use basic driver or switch between ORM.
The way I do this right now is something like this.
Is this the right way to do this ? or gorm already have functionality that support this ?
The text was updated successfully, but these errors were encountered: