params

package
v3.89.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Declare

func Declare(p *Parameter) string

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func (Builder) Build

func (b Builder) Build() *Parameters

func (Builder) Param

func (b Builder) Param(name string) *Parameter

type NamedValue

type NamedValue interface {
	Name() string
	Value() value.Value
}

type Parameter

type Parameter struct {
	// contains filtered or unexported fields
}

func Named

func Named(name string, value value.Value) *Parameter

func (*Parameter) Any added in v3.75.0

func (p *Parameter) Any(v types.Value) Builder

func (*Parameter) BeginDict added in v3.58.0

func (p *Parameter) BeginDict() *dict

func (*Parameter) BeginList added in v3.58.0

func (p *Parameter) BeginList() *list

func (*Parameter) BeginOptional added in v3.58.0

func (p *Parameter) BeginOptional() *optional

func (*Parameter) BeginSet added in v3.58.0

func (p *Parameter) BeginSet() *set

func (*Parameter) BeginStruct added in v3.59.0

func (p *Parameter) BeginStruct() *structure

func (*Parameter) BeginTuple added in v3.59.0

func (p *Parameter) BeginTuple() *tuple

func (*Parameter) BeginVariant added in v3.61.0

func (p *Parameter) BeginVariant() *variant

func (*Parameter) Bool

func (p *Parameter) Bool(v bool) Builder

func (*Parameter) Bytes

func (p *Parameter) Bytes(v []byte) Builder

func (*Parameter) Date

func (p *Parameter) Date(v time.Time) Builder

func (*Parameter) Datetime

func (p *Parameter) Datetime(v time.Time) Builder

func (*Parameter) Decimal

func (p *Parameter) Decimal(v [16]byte, precision, scale uint32) Builder

func (*Parameter) Double

func (p *Parameter) Double(v float64) Builder

func (*Parameter) Float

func (p *Parameter) Float(v float32) Builder

func (*Parameter) Int16

func (p *Parameter) Int16(v int16) Builder

func (*Parameter) Int32

func (p *Parameter) Int32(v int32) Builder

func (*Parameter) Int64

func (p *Parameter) Int64(v int64) Builder

func (*Parameter) Int8

func (p *Parameter) Int8(v int8) Builder

func (*Parameter) Interval

func (p *Parameter) Interval(v time.Duration) Builder

func (*Parameter) JSON

func (p *Parameter) JSON(v string) Builder

func (*Parameter) JSONDocument

func (p *Parameter) JSONDocument(v string) Builder

func (*Parameter) Name

func (p *Parameter) Name() string

func (*Parameter) Pg added in v3.58.0

func (p *Parameter) Pg() pgParam

func (*Parameter) Text

func (p *Parameter) Text(v string) Builder

func (*Parameter) Timestamp

func (p *Parameter) Timestamp(v time.Time) Builder

func (*Parameter) TzDate added in v3.59.0

func (p *Parameter) TzDate(v time.Time) Builder

func (*Parameter) TzDatetime added in v3.59.0

func (p *Parameter) TzDatetime(v time.Time) Builder

func (*Parameter) TzTimestamp added in v3.59.0

func (p *Parameter) TzTimestamp(v time.Time) Builder

func (*Parameter) UUIDWithIssue1501Value added in v3.86.0

func (p *Parameter) UUIDWithIssue1501Value(v [16]byte) Builder

UUIDWithIssue1501Value is field serializer for save data with format bug. For any new code use Uuid https://github.com/ydb-platform/ydb-go-sdk/issues/1501

func (*Parameter) Uint16

func (p *Parameter) Uint16(v uint16) Builder

func (*Parameter) Uint32

func (p *Parameter) Uint32(v uint32) Builder

func (*Parameter) Uint64

func (p *Parameter) Uint64(v uint64) Builder

func (*Parameter) Uint8

func (p *Parameter) Uint8(v uint8) Builder

func (*Parameter) Uuid added in v3.86.0

func (p *Parameter) Uuid(val uuid.UUID) Builder

func (*Parameter) Value

func (p *Parameter) Value() value.Value

func (*Parameter) YSON

func (p *Parameter) YSON(v []byte) Builder

type Parameters

type Parameters []*Parameter

func (*Parameters) Add

func (p *Parameters) Add(params ...NamedValue)

func (*Parameters) Count

func (p *Parameters) Count() int

func (*Parameters) Each

func (p *Parameters) Each(it func(name string, v value.Value))

func (*Parameters) String

func (p *Parameters) String() string

func (*Parameters) ToYDB

func (p *Parameters) ToYDB(a *allocator.Allocator) map[string]*Ydb.TypedValue

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL