qlutil

package
v0.0.0-...-50414e9 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextWrapper

type ContextWrapper[I, D any] struct {
	// contains filtered or unexported fields
}

ContextWrapper is a wrapper around a type that implements the qlbridge.ContextReader interface.

func NewContextWrapper

func NewContextWrapper[I, D any](
	id I,
	data D,
	extractor schema.PathExtractor[D],
	flatter schema.Flatter[D],
) *ContextWrapper[I, D]

NewContextWrapper creates a new ContextWrapper.

func (*ContextWrapper[I, D]) Get

func (c *ContextWrapper[I, D]) Get(key string) (qlvalue.Value, bool)

Get implements the qlbridge.ContextReader interface.

func (*ContextWrapper[I, D]) Row

func (c *ContextWrapper[I, D]) Row() map[string]qlvalue.Value

Row implements the qlbridge.ContextReader interface. I don't know what this is supposed to do.

func (*ContextWrapper[I, D]) Ts

func (c *ContextWrapper[I, D]) Ts() time.Time

Ts implements the qlbridge.ContextReader interface. I don't know what this is supposed to do.

Jump to

Keyboard shortcuts

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