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

Function RowsForSession

datasource/session.go:20–28  ·  view source on GitHub ↗
(ctx *plan.Context)

Source from the content-addressed store, hash-verified

18var mysqlGlobalVars *ContextSimple = NewMySqlGlobalVars()
19
20func RowsForSession(ctx *plan.Context) [][]driver.Value {
21
22 ses := ctx.Session.Row()
23 rows := make([][]driver.Value, 0, len(ses))
24 for k, v := range ses {
25 rows = append(rows, []driver.Value{k, v.Value()})
26 }
27 return rows
28}
29
30func NewMySqlSessionVars() expr.ContextReadWriter {
31 ctx := NewContextSimple()

Callers 1

SetContextMethod · 0.85

Calls 2

RowMethod · 0.65
ValueMethod · 0.65

Tested by

no test coverage detected