xtdb.node
This namespace is for starting an in-process XTDB node.
It lives in the `com.xtdb/xtdb-core` artifact - ensure you've included this in your dependency manager of choice to use in-process nodes.
start-node
(start-node)
(start-node opts)
Starts an in-process node with the given configuration.
Accepts various parameter types:
- An 'edn' map containing configuration options for the node.
- An instance of 'xtdb.api.Xtdb$Config'.
- An instance of 'java.io.File' pointing to an existing '.yaml' configuration file.
- An instance of 'java.nio.file.Path' pointing to an existing '.yaml' configuration file.
For a simple, in-memory node (e.g. for testing/experimentation), you can elide the configuration altogether.
This node *must* be closed when it is no longer needed (through `.close`, or `with-open`) so that it can clean up its resources.
For more information on the configuration options, see the relevant module pages in the [Clojure docs](https://docs.xtdb.com/drivers/clojure/codox/index.html)