Documentation
¶
Index ¶
- type Tuple
- func (t *Tuple) Append(val any)
- func (t *Tuple) BindingID() any
- func (t *Tuple) Copy() Tuple
- func (t *Tuple) HasBindingID(bindingID any) bool
- func (t *Tuple) Index(i int) (any, error)
- func (t *Tuple) IsNull() bool
- func (t *Tuple) Len() int
- func (t *Tuple) PopLast() (any, error)
- func (t *Tuple) RawIndex(i int) (any, error)
- func (t *Tuple) Resize(size int)
- func (t *Tuple) Set(i int, val any) error
- func (t *Tuple) WithBindingID(bindingID any) Tuple
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tuple ¶
type Tuple struct {
// contains filtered or unexported fields
}
func NewTupleOwned ¶
NewTupleOwned builds a tuple from values owned by the caller. The values slice must not be mutated after the call.
func NewTupleOwnedBound ¶ added in v1.18.0
NewTupleOwnedBound builds a tuple from caller-owned values with the binding ID already set, skipping the intermediate tuple that NewTupleOwned followed by WithBindingID would allocate.
func NewTupleSized ¶
func NewTupleValue ¶
NewTupleValue builds a tuple as a value wrapper, which is the preferred form for storing and passing Tuple because it already shares its internal data via pointer semantics.
func (*Tuple) HasBindingID ¶
func (*Tuple) WithBindingID ¶
Click to show internal directories.
Click to hide internal directories.