Skip to main content

Storage paths

@liorandb/core uses a single “root folder” where all database directories are stored.

Default root path

If you do not pass rootPath to LioranManager, the default root is:

  • process.env.LIORANDB_PATH if set, otherwise
  • ~/LioranDB/db

The directory is created automatically if it does not exist.

getBaseDBFolder()

getBaseDBFolder(): string

Returns the resolved default root folder path used by the embedded engine.