Add ability to set a dialect on an existing builder #77
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ability to change the dialect of a builder after its creation.
It is helpful when you have to support several dialects simultaneously and you can pass a builder to DB layer and choose the dialect there.
613e1baf41
to7f4671b14b
@ -103,2 +103,4 @@
}
// ToDialect sets the dialect
func (b *Builder) ToDialect(dialect string) *Builder {
Maybe we could have a better name for this function?
Maybe SetDialect fits better according to "Effective Go" article https://golang.org/doc/effective_go.html#Getters
Or can you suggest better name?
AsDialect(dialect string)
maybe better?Pull request closed