The following Java code snippets demonstrate how easy it is to run database commands, create collections, perform queries, etc. via the BaseX API:
* [[RunCommands]]: creates and drops database and index instances, lists and prints a list of all existing databases.