Function pgdump_toc_rewrite::write_toc_from_json
source · 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 filetoc_json
- JSON string