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

Method preOrAppendSQL

jOOQ/src/main/java/org/jooq/impl/Tools.java:6507–6518  ·  view source on GitHub ↗
(SimpleDataKey key, C ctx, Query... queries)

Source from the content-addressed store, hash-verified

6505 }
6506
6507 private static final <C extends Context<? extends C>> C preOrAppendSQL(SimpleDataKey key, C ctx, Query... queries) {
6508 ctx.data().compute(key, (k, v) -> {
6509 String sql = ctx.dsl().renderInlined(ctx.dsl().queries(queries));
6510
6511 if (v == null)
6512 return sql;
6513 else
6514 return v + sql;
6515 });
6516
6517 return ctx;
6518 }
6519
6520 // -------------------------------------------------------------------------
6521 // XXX: ForkJoinPool ManagedBlock implementation

Callers 2

prependSQLMethod · 0.95
appendSQLMethod · 0.95

Calls 5

dataMethod · 0.65
renderInlinedMethod · 0.65
dslMethod · 0.65
queriesMethod · 0.65
computeMethod · 0.45

Tested by

no test coverage detected