Skip to main content

open

Function open 

Source
pub async fn open(path: &Path) -> Result<Surreal<Db>, GraphError>
Expand description

Open (or create) a SurrealDB embedded store at the given path.

Retries briefly if another process holds the store lock, then fails with GraphError::Locked carrying an actionable message.