Lunny Xiao
cace6862e2
All checks were successful
continuous-integration/drone/push Build is passing
Since `conversion.Conversion` has been referenced by external package, it should not be moved as internal package. Reviewed-on: #2030 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
20 lines
440 B
Go
20 lines
440 B
Go
// Copyright 2021 The Xorm Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package convert
|
|
|
|
import "database/sql"
|
|
|
|
var (
|
|
_ sql.Scanner = &EmptyScanner{}
|
|
)
|
|
|
|
// EmptyScanner represents an empty scanner which will ignore the scan
|
|
type EmptyScanner struct{}
|
|
|
|
// Scan implements sql.Scanner
|
|
func (EmptyScanner) Scan(value interface{}) error {
|
|
return nil
|
|
}
|