==Local Examples==
The following code snippets work in ''embedded'' mode; they do not require any rely on an additional server instance:
* [https://github.com/BaseXdb/basex-examples/blob/master/src/main/java/org/basex/examples/local/RunCommands.java RunCommands.java]<br/>creates and drops database and index instances, prints a list of all existing databases.