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

Method db

basex-api/src/main/java/org/basex/http/HTTPConnection.java:149–152  ·  view source on GitHub ↗

Returns the addressed database (i.e., the first path entry). @return database, or null if the root directory was specified

()

Source from the content-addressed store, hash-verified

147 * @return database, or {@code null} if the root directory was specified
148 */
149 public String db() {
150 final int i = path.indexOf('/', 1);
151 return path.substring(1, i == -1 ? path.length() : i);
152 }
153
154 /**
155 * Returns all accepted media types.

Callers 5

getMethod · 0.95
run0Method · 0.95
queryMethod · 0.95
getMethod · 0.95
runMethod · 0.45

Calls 3

indexOfMethod · 0.45
substringMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected