Open a persistent PGlite database rooted at `root`, installing and initializing it if needed.
(root: impl AsRef<Path>)
| 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> { |