Files
gocqlx/transformer.go

14 lines
433 B
Go
Raw Normal View History

2021-11-23 21:58:26 +03:00
// 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