MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / Next

Method Next

cmd/cql-proxy/storage/impersonate.go:62–75  ·  view source on GitHub ↗
(dest []driver.Value)

Source from the content-addressed store, hash-verified

60}
61
62func (r *impersonatedRows) Next(dest []driver.Value) error {
63 if len(r.data) == 0 {
64 return io.EOF
65 }
66
67 for i, d := range r.data[0].Values {
68 dest[i] = d
69 }
70
71 // unshift data
72 r.data = r.data[1:]
73
74 return nil
75}
76
77func (r *impersonatedRows) ColumnTypeDatabaseTypeName(index int) string {
78 return strings.ToUpper(r.types[index])

Callers 15

buildBlockInfosFunction · 0.45
listMethod · 0.45
readAllRowsFunction · 0.45
HandleFieldListMethod · 0.45
benchDBFunction · 0.45
initDBFunction · 0.45
initAuthFunction · 0.45
initTaskManagerFunction · 0.45
initRulesManagerFunction · 0.45
initConfigFunction · 0.45
userCheckRequireLoginFunction · 0.45
projectIDInjectFunction · 0.45

Calls

no outgoing calls

Tested by 1

benchDBFunction · 0.36