MCPcopy Create free account
hub / github.com/BaseXdb/basex / item

Method item

basex-core/src/main/java/org/basex/query/func/sql/SqlInit.java:18–23  ·  view source on GitHub ↗
(final QueryContext qc, final InputInfo ii)

Source from the content-addressed store, hash-verified

16 */
17public final class SqlInit extends StandardFunc {
18 @Override
19 public Item item(final QueryContext qc, final InputInfo ii) throws QueryException {
20 final String driver = toString(arg(0), qc);
21 if(Reflect.find(driver) == null) throw SQL_INIT_X.get(info, driver);
22 return Empty.VALUE;
23 }
24}

Callers 1

iterMethod · 0.45

Calls 4

findMethod · 0.95
toStringMethod · 0.65
getMethod · 0.65
argMethod · 0.45

Tested by

no test coverage detected