It doesn't say in the documentation.
It really depends on how you run the database.
If you are using the cli and run the database via surreal start, the database runs in-memory per default. So the the data is not stored persistently anywhere.
You can manually provide a path to determine where the data is stored.
surreal start file://./surrealDB
Valid values for path are
memory to store the data in-memoryfile://<path> to store the data in the specified pathtikv://<addr> to store the data in a TiKV databaseTobias is right, I'll just add this official link for future-proofness.
The usage is indeed like this
surreal start [OPTIONS] [--] [path]
With path being optional and having memory as a default
Can be one of
memory,file://<path>,tikv://<addr>
<path> Database path used for storing data [default: memory]
When starting the server, you'll also notice where it effectively runs by checking the console

That could also be useful to discover more useful params for the CLI like -u or -p.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With