MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / open

Method open

src/pglite/client.rs:121–123  ·  view source on GitHub ↗

Open a persistent PGlite database rooted at `root`, installing and initializing it if needed.

(root: impl AsRef<Path>)

Source from the content-addressed store, hash-verified

119
120 /// Open a persistent PGlite database rooted at `root`, installing and initializing it if needed.
121 pub fn open(root: impl AsRef<Path>) -> Result<Self> {
122 Self::builder().path(root.as_ref().to_path_buf()).open()
123 }
124
125 /// Open a persistent PGlite database under the platform data directory for `app_id`.
126 pub fn open_app(app_id: (&str, &str, &str)) -> Result<Self> {

Calls 1

pathMethod · 0.45