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

Method close

basex-core/src/main/java/org/basex/core/cmd/Close.java:44–46  ·  view source on GitHub ↗

Closes the specified database. @param data data reference @param ctx database context

(final Data data, final Context ctx)

Source from the content-addressed store, hash-verified

42 * @param ctx database context
43 */
44 public static void close(final Data data, final Context ctx) {
45 synchronized(ctx.datas) { ctx.datas.unpin(data); }
46 }
47
48 /**
49 * Closes a currently opened database.

Callers 15

runMethod · 0.95
closeMethod · 0.95
newDataMethod · 0.95
runMethod · 0.95
newDataMethod · 0.95
listResourcesMethod · 0.95
optimizeAllMethod · 0.95
runMethod · 0.95
runMethod · 0.95
runMethod · 0.95
newDataMethod · 0.95
runMethod · 0.95

Calls 2

runMethod · 0.65
unpinMethod · 0.45

Tested by

no test coverage detected