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

Method drop

basex-core/src/main/java/org/basex/core/cmd/DropDB.java:62–66  ·  view source on GitHub ↗

Deletes the specified database. Calls for main-memory database instances are ignored. @param data data reference @param sopts static options @return success flag

(final Data data, final StaticOptions sopts)

Source from the content-addressed store, hash-verified

60 * @return success flag
61 */
62 public static synchronized boolean drop(final Data data, final StaticOptions sopts) {
63 if(data.inMemory()) return true;
64 data.close();
65 return drop(data.meta.name, sopts);
66 }
67
68 /**
69 * Deletes the specified database or general data.

Callers 11

tearDownMethod · 0.95
alterMethod · 0.95
finishMethod · 0.95
runMethod · 0.95
optimizeAllMethod · 0.95
restoreMethod · 0.95
copyMethod · 0.95
finishMethod · 0.95
dropMethod · 0.95
prepareMethod · 0.95
applyMethod · 0.95

Calls 11

existsMethod · 0.95
deleteMethod · 0.95
dbFilesMethod · 0.80
closeMethod · 0.65
nameMethod · 0.65
inMemoryMethod · 0.45
dbPathMethod · 0.45
isEmptyMethod · 0.45
deleteMethod · 0.45
childrenMethod · 0.45
matchesMethod · 0.45

Tested by 1

tearDownMethod · 0.76