schema/field: add support or external ValueScanner (#3391)

This commit is contained in:
Ariel Mashraki
2023-03-16 22:18:54 +02:00
committed by GitHub
parent a264ffcac1
commit 3f1063c77e
175 changed files with 8645 additions and 357 deletions

View File

@@ -3454,15 +3454,15 @@ type (
// Arg appends an input argument to the builder.
func (b *Builder) Arg(a any) *Builder {
switch a := a.(type) {
switch v := a.(type) {
case nil:
b.WriteString("NULL")
return b
case *raw:
b.WriteString(a.s)
b.WriteString(v.s)
return b
case Querier:
b.Join(a)
b.Join(v)
return b
}
// Default placeholder param (MySQL and SQLite).