github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/internal/xsql/valuer.go (about)

     1  package xsql
     2  
     3  import (
     4  	"github.com/ydb-platform/ydb-go-sdk/v3/internal/scanner"
     5  )
     6  
     7  type valuer struct {
     8  	v interface{}
     9  }
    10  
    11  func (v *valuer) UnmarshalYDB(raw scanner.RawValue) error {
    12  	v.v = raw.Any()
    13  
    14  	return nil
    15  }
    16  
    17  func (v *valuer) Value() interface{} {
    18  	return v.v
    19  }