Skip to main content

open

Function open 

Source
pub async fn open()
Expand description

Opens the active environment’s database, from a place that can await.

Opening is the one step of persistence that has to be awaited, because the browser reaches its files through promises. A browser page awaits this before its device comes up; a store opened before it serves memory alone. Natively it is optional: a store opens the database itself on first use. Without a durable backend there is nothing to open.