Skip to main content

load

Function load 

Source
pub async fn load(
    pool: &PgPool,
    schema_version: i64,
    input: impl BufRead,
) -> Result<Summary>
Expand description

Reads a backup into an empty installation.

Refuses rather than merges: a restore into a database with data in it would have to decide what wins, and every answer to that is wrong for somebody. The operator empties the database - or points at a fresh one - and the intent is theirs rather than inferred.