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

Function prepare_database_root

src/pglite/base.rs:1574–1586  ·  view source on GitHub ↗
(
    paths: PglitePaths,
    options: RootPrepareOptions,
)

Source from the content-addressed store, hash-verified

1572}
1573
1574pub(crate) fn prepare_database_root(
1575 paths: PglitePaths,
1576 options: RootPrepareOptions,
1577) -> Result<InstallOutcome> {
1578 let (mut runtime_layout, unpacked_runtime) = prepare_runtime_layout(&paths, options.runtime)?;
1579 prepare_pgdata(&paths, options.cluster, &mut runtime_layout)?;
1580 Ok(InstallOutcome {
1581 paths,
1582 unpacked_runtime,
1583 runtime_layout,
1584 preinstalled_extensions: Vec::new(),
1585 })
1586}
1587
1588fn prepare_pgdata(
1589 paths: &PglitePaths,

Callers 8

prepare_root_from_pathsFunction · 0.85
install_defaultFunction · 0.85
install_intoFunction · 0.85
install_with_optionsFunction · 0.85
newMethod · 0.85

Calls 2

prepare_runtime_layoutFunction · 0.85
prepare_pgdataFunction · 0.85