Function fdb::open_database
source · [−]pub fn open_database<P>(cluster_file_path: P) -> FdbResult<FdbDatabase> where
P: AsRef<Path>,
Expand description
Returns FdbDatabase
handle to the FDB cluster identified by
the provided cluster file.
If no cluster file is passed, FDB automatically determines a cluster file with which to connect to a cluster.
A single client can use this function multiple times to connect to different clusters simultaneously, with each invocation requiring its own cluster file.
Note
The caller must ensure that FdbDatabase
stays alive during
the lifetime of any transactions or futures that FdbDatabase
creates.