MCPcopy Create free account
hub / github.com/PostHog/duckgres / stringConstNode

Function stringConstNode

transpiler/transform/operators.go:883–891  ·  view source on GitHub ↗

stringConstNode builds an A_Const string node carrying the given value.

(s string)

Source from the content-addressed store, hash-verified

881
882// stringConstNode builds an A_Const string node carrying the given value.
883func stringConstNode(s string) *pg_query.Node {
884 return &pg_query.Node{
885 Node: &pg_query.Node_AConst{
886 AConst: &pg_query.A_Const{
887 Val: &pg_query.A_Const_Sval{Sval: &pg_query.String{Sval: s}},
888 },
889 },
890 }
891}
892
893// pgPathArrayToJSONPath converts a literal Postgres text[] path (e.g. '{a,b}' or
894// '{a,0,b}') into a DuckDB JSONPath ('$."a"."b"', '$."a"[0]."b"'). Keys are

Callers 2

transformExpressionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected