MCPcopy Index your code
hub / github.com/jOOQ/jOOQ / accept

Method accept

jOOQ/src/main/java/org/jooq/impl/JSONGetAttribute.java:134–193  ·  view source on GitHub ↗
(Context<?> ctx)

Source from the content-addressed store, hash-verified

132 }
133
134 @Override
135 public final void accept(Context<?> ctx) {
136 switch (ctx.family()) {
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179 case MARIADB:
180 case MYSQL:
181 case TRINO:
182 ctx.visit(function(N_JSON_EXTRACT, JSON, field, inline("$.").concat(attribute)));
183 break;
184
185 case CLICKHOUSE:
186 ctx.visit(function(N_JSONExtractRaw, getDataType(), field, attribute));
187 break;
188
189 default:
190 ctx.sql('(').visit(field).sql("->").visit(attribute).sql(')');
191 break;

Callers

nothing calls this directly

Calls 7

inlineMethod · 0.80
familyMethod · 0.65
visitMethod · 0.65
concatMethod · 0.65
getDataTypeMethod · 0.65
sqlMethod · 0.65
functionMethod · 0.45

Tested by

no test coverage detected