github.com/ydb-platform/ydb-go-sdk/v3@v3.89.2/query/result.go (about)

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