pub fn write_toc_from_json<P: AsRef<Path>>(
    toc_path: P,
    toc_json: &str
) -> Result<(), TocError>
Expand description

Writes pg_dump TOC from a JSON string.

JSON string can be generated with read_toc_json.

§Arguments

  • toc_path - Path to destination TOC file
  • toc_json - JSON string