stringConstNode builds an A_Const string node carrying the given value.
(s string)
| 881 | |
| 882 | // stringConstNode builds an A_Const string node carrying the given value. |
| 883 | func 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 |
no outgoing calls
no test coverage detected