MCPcopy Create free account
hub / github.com/rilldata/rill / ExpressionToSQL

Function ExpressionToSQL

runtime/metricsview/query_expression_sql.go:13–20  ·  view source on GitHub ↗
(e *Expression)

Source from the content-addressed store, hash-verified

11)
12
13func ExpressionToSQL(e *Expression) (string, error) {
14 b := exprSQLBuilder{Builder: &strings.Builder{}}
15 err := b.writeExpression(e)
16 if err != nil {
17 return "", err
18 }
19 return b.String(), nil
20}
21
22type exprSQLBuilder struct {
23 *strings.Builder

Callers 5

toMagicAuthTokenRowFunction · 0.92
systemPromptMethod · 0.92
TestAnalystOpenRTBFunction · 0.92
TestExpressionToSQLFunction · 0.85

Calls 2

writeExpressionMethod · 0.95
StringMethod · 0.65

Tested by 2

TestAnalystOpenRTBFunction · 0.74
TestExpressionToSQLFunction · 0.68