Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cockscomb/cel2sql
/ functions
Functions
59 in github.com/cockscomb/cel2sql
⨍
Functions
59
◇
Types & classes
4
↓ 16 callers
Method
visit
(expr *exprpb.Expr)
cel2sql.go:38
↓ 13 callers
Function
newConstantString
(str string)
sqltypes/types.go:19
↓ 10 callers
Method
visitMaybeNested
(expr *exprpb.Expr, nested bool)
cel2sql.go:702
↓ 8 callers
Method
getType
(node *exprpb.Expr)
cel2sql.go:716
↓ 5 callers
Function
isBinaryOrTernaryOperator
Indicate whether this is a binary or ternary operator.
cel2sql.go:782
↓ 5 callers
Function
isListType
(typ *exprpb.Type)
cel2sql.go:725
↓ 4 callers
Function
isComplexOperatorWithRespectTo
Indicates whether it is a complex operation compared to another. expr is *not* considered complex if it is not a call expression or has less than two
cel2sql.go:774
↓ 4 callers
Function
isTimestampRelatedType
(typ *exprpb.Type)
cel2sql.go:157
↓ 3 callers
Function
NewTrigramsTableMetadata
()
test/testdata.go:9
↓ 3 callers
Function
NewTypeProvider
(schemas map[string]bigquery.Schema)
bq/provider.go:19
↓ 3 callers
Function
NewWikipediaTableMetadata
()
test/testdata.go:213
↓ 2 callers
Function
extractFieldName
(node *exprpb.Expr)
cel2sql.go:836
↓ 2 callers
Method
findSchema
(typeName string)
bq/provider.go:31
↓ 2 callers
Function
isBoolLiteral
(node *exprpb.Expr)
cel2sql.go:799
↓ 2 callers
Function
isDateTimeType
(typ *exprpb.Type)
cel2sql.go:174
↓ 2 callers
Function
isDateType
(typ *exprpb.Type)
cel2sql.go:166
↓ 2 callers
Function
isDurationRelatedType
(typ *exprpb.Type)
cel2sql.go:182
↓ 2 callers
Function
isNullLiteral
(node *exprpb.Expr)
cel2sql.go:790
↓ 2 callers
Function
isSamePrecedence
isSamePrecedence indicates whether the precedence of the input operator is the same as the precedence of the (possible) operation represented in the i
cel2sql.go:740
↓ 2 callers
Function
isTimeType
(typ *exprpb.Type)
cel2sql.go:170
↓ 2 callers
Function
isTimestampType
(typ *exprpb.Type)
cel2sql.go:178
↓ 1 callers
Function
Convert
Implementations based on `google/cel-go`'s unparser https://github.com/google/cel-go/blob/master/parser/unparser.go
cel2sql.go:19
↓ 1 callers
Method
FindFieldType
(messageType string, fieldName string)
bq/provider.go:61
↓ 1 callers
Method
FindType
(typeName string)
bq/provider.go:53
↓ 1 callers
Function
bytesToOctets
bytesToOctets converts byte sequences to a string using a three digit octal encoded value per byte.
cel2sql.go:819
↓ 1 callers
Method
callCasting
(function string, target *exprpb.Expr, args []*exprpb.Expr)
cel2sql.go:396
↓ 1 callers
Method
callContains
(target *exprpb.Expr, args []*exprpb.Expr)
cel2sql.go:279
↓ 1 callers
Method
callDuration
(target *exprpb.Expr, args []*exprpb.Expr)
cel2sql.go:302
↓ 1 callers
Method
callExtractFromTimestamp
(function string, target *exprpb.Expr, args []*exprpb.Expr)
cel2sql.go:355
↓ 1 callers
Method
callInterval
(target *exprpb.Expr, args []*exprpb.Expr)
cel2sql.go:344
↓ 1 callers
Method
callTimestampOperation
(fun string, lhs *exprpb.Expr, rhs *exprpb.Expr)
cel2sql.go:191
↓ 1 callers
Function
isComplexOperator
Indicates whether the expr is a complex operator, i.e., a call expression with 2 or more arguments.
cel2sql.go:764
↓ 1 callers
Function
isLeftRecursive
isLeftRecursive indicates whether the parser resolves the call in a left-recursive manner as this can have an effect of how parentheses affect the ord
cel2sql.go:732
↓ 1 callers
Function
isLowerPrecedence
isLowerPrecedence indicates whether the precedence of the input operator is lower precedence than the (possible) operation represented in the input Ex
cel2sql.go:753
↓ 1 callers
Function
isMapType
(typ *exprpb.Type)
cel2sql.go:720
↓ 1 callers
Function
isStringLiteral
(node *exprpb.Expr)
cel2sql.go:808
↓ 1 callers
Function
validateFieldName
(name string)
cel2sql.go:829
↓ 1 callers
Method
visitCall
(expr *exprpb.Expr)
cel2sql.go:59
↓ 1 callers
Method
visitCallBinary
(expr *exprpb.Expr)
cel2sql.go:101
↓ 1 callers
Method
visitCallConditional
(expr *exprpb.Expr)
cel2sql.go:253
↓ 1 callers
Method
visitCallFunc
(expr *exprpb.Expr)
cel2sql.go:429
↓ 1 callers
Method
visitCallIndex
(expr *exprpb.Expr)
cel2sql.go:501
↓ 1 callers
Method
visitCallListIndex
(expr *exprpb.Expr)
cel2sql.go:526
↓ 1 callers
Method
visitCallMapIndex
(expr *exprpb.Expr)
cel2sql.go:508
↓ 1 callers
Method
visitCallUnary
(expr *exprpb.Expr)
cel2sql.go:547
↓ 1 callers
Method
visitComprehension
(expr *exprpb.Expr)
cel2sql.go:564
↓ 1 callers
Method
visitConst
(expr *exprpb.Expr)
cel2sql.go:570
↓ 1 callers
Method
visitIdent
(expr *exprpb.Expr)
cel2sql.go:603
↓ 1 callers
Method
visitList
(expr *exprpb.Expr)
cel2sql.go:610
↓ 1 callers
Method
visitSelect
(expr *exprpb.Expr)
cel2sql.go:627
↓ 1 callers
Method
visitStruct
(expr *exprpb.Expr)
cel2sql.go:647
↓ 1 callers
Method
visitStructMap
(expr *exprpb.Expr)
cel2sql.go:679
↓ 1 callers
Method
visitStructMsg
(expr *exprpb.Expr)
cel2sql.go:657
Method
EnumValue
(enumName string)
bq/provider.go:23
Method
FindIdent
(identName string)
bq/provider.go:27
Method
NewValue
(typeName string, fields map[string]ref.Val)
bq/provider.go:107
Function
TestConvert
(t *testing.T)
cel2sql_test.go:18
Function
Test_typeProvider_FindFieldType
(t *testing.T)
bq/provider_test.go:96
Function
Test_typeProvider_FindType
(t *testing.T)
bq/provider_test.go:16