MCPcopy Create free account
hub / github.com/araddon/qlbridge / NewContextSimpleData

Function NewContextSimpleData

datasource/context.go:150–152  ·  view source on GitHub ↗
(data map[string]value.Value)

Source from the content-addressed store, hash-verified

148 return &ContextSimple{Data: make(map[string]value.Value), ts: time.Now(), cursor: 0}
149}
150func NewContextSimpleData(data map[string]value.Value) *ContextSimple {
151 return &ContextSimple{Data: data, ts: time.Now(), cursor: 0}
152}
153func NewContextSimpleNative(data map[string]interface{}) *ContextSimple {
154 vals := make(map[string]value.Value)
155 for k, v := range data {

Callers 6

TestNestedFunction · 0.92
TestNamespacesFunction · 0.92
plan_proto_test.goFile · 0.92
sqlvm_test.goFile · 0.92
BenchmarkVmExecuteFunction · 0.92

Calls

no outgoing calls

Tested by 4

TestNestedFunction · 0.74
TestNamespacesFunction · 0.74
BenchmarkVmExecuteFunction · 0.74