MCPcopy Create free account
hub / github.com/jOOQ/jOOQ / executeJSON

Method executeJSON

jOOQ/src/main/java/org/jooq/impl/LoaderImpl.java:687–703  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

685 }
686
687 private final void executeJSON() {
688 Reader reader = null;
689
690 try {
691 reader = input.reader();
692 Result<Record> r = new JSONReader<>(configuration.dsl(), converterContext(configuration), null, null).read(Source.of(reader));
693 source = r.fields();
694
695 // The current json format is not designed for streaming. Thats why
696 // all records are loaded at once.
697 List<Object[]> allRecords = Arrays.asList(r.intoArrays());
698 executeSQL(allRecords.iterator());
699 }
700 finally {
701 safeClose(reader);
702 }
703 }
704
705 private final void executeCSV() {
706 CSVReader reader = null;

Callers 1

executeMethod · 0.95

Calls 10

ofMethod · 0.95
executeSQLMethod · 0.95
readerMethod · 0.80
dslMethod · 0.65
converterContextMethod · 0.65
fieldsMethod · 0.65
intoArraysMethod · 0.65
iteratorMethod · 0.65
readMethod · 0.45
safeCloseMethod · 0.45

Tested by

no test coverage detected