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

Method AddContext

schema/schema.go:614–619  ·  view source on GitHub ↗

AddContext add key/value pairs to context (settings, metatadata).

(key string, value interface{})

Source from the content-addressed store, hash-verified

612
613// AddContext add key/value pairs to context (settings, metatadata).
614func (m *Table) AddContext(key string, value interface{}) {
615 if len(m.Context) == 0 {
616 m.Context = make(map[string]interface{})
617 }
618 m.Context[key] = value
619}
620
621func (m *Table) Marshal() ([]byte, error) {
622 return proto.Marshal(&m.TablePb)

Callers 2

TestTableFunction · 0.95
TestFieldsFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestTableFunction · 0.76
TestFieldsFunction · 0.36