-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathresult.go
33 lines (27 loc) · 989 Bytes
/
result.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package query
import (
"github.com/ydb-platform/ydb-go-sdk/v3/internal/query/result"
"github.com/ydb-platform/ydb-go-sdk/v3/internal/query/scanner"
"github.com/ydb-platform/ydb-go-sdk/v3/internal/types"
)
type (
Result = result.Result
ResultSet = result.Set
ClosableResultSet = result.ClosableResultSet
Row = result.Row
Type = types.Type
NamedDestination = scanner.NamedDestination
ScanStructOption = scanner.ScanStructOption
)
func Named(columnName string, destinationValueReference interface{}) (dst NamedDestination) {
return scanner.NamedRef(columnName, destinationValueReference)
}
func WithScanStructTagName(name string) ScanStructOption {
return scanner.WithTagName(name)
}
func WithScanStructAllowMissingColumnsFromSelect() ScanStructOption {
return scanner.WithAllowMissingColumnsFromSelect()
}
func WithScanStructAllowMissingFieldsInStruct() ScanStructOption {
return scanner.WithAllowMissingFieldsInStruct()
}