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

Method create

basex-core/src/main/java/org/basex/core/cmd/CreateDB.java:150–153  ·  view source on GitHub ↗

Returns a database instance from the specified parser. @param name name of the database @param parser input parser @param ctx database context @param options main options @return new database instance @throws IOException I/O exception

(final String name, final Parser parser, final Context ctx,
      final MainOptions options)

Source from the content-addressed store, hash-verified

148 * @throws IOException I/O exception
149 */
150 public static synchronized Data create(final String name, final Parser parser, final Context ctx,
151 final MainOptions options) throws IOException {
152 return create(name, parser, ctx, options, options.get(MainOptions.MAINMEM));
153 }
154
155 /**
156 * Creates a new database instance, using the specified parser.

Callers 4

BXCollectionMethod · 0.95
createMethod · 0.95
prepareMethod · 0.95
applyMethod · 0.95

Calls 8

openMethod · 0.95
createMethod · 0.95
getMethod · 0.65
closeMethod · 0.65
hasMethod · 0.45
userMethod · 0.45
buildMethod · 0.45
pinnedMethod · 0.45

Tested by

no test coverage detected