queryx: add binding transformer
This commit is contained in:
committed by
Michal Jan Matczuk
parent
5e98fb6f71
commit
504f6523d9
13
transformer.go
Normal file
13
transformer.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// Copyright (C) 2017 ScyllaDB
|
||||
// Use of this source code is governed by a ALv2-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package gocqlx
|
||||
|
||||
// Transformer transforms the value of the named parameter to another value.
|
||||
type Transformer func(name string, val interface{}) interface{}
|
||||
|
||||
// DefaultBindTransformer just do nothing.
|
||||
//
|
||||
// A custom transformer can always be set per Query.
|
||||
var DefaultBindTransformer Transformer
|
||||
Reference in New Issue
Block a user