pub struct Writer { /* private fields */ }
Expand description
Writer of apidb schema dump
Writer of apidb schema dump that can be loaded using pg_restore into a Postgresql database
Implementations§
Source§impl Writer
impl Writer
Sourcepub fn new(output_path: PathBuf, compression_level: i8) -> Result<Writer, Error>
pub fn new(output_path: PathBuf, compression_level: i8) -> Result<Writer, Error>
Create a new Writer
- output_path - directory to write the output to. Must contain enough space which is very difficult to calculate because the *.osm.pbf input is so condensed that 1GB of input can easily transform into 100GB of output.
Sourcepub fn table_mapping(&self) -> Vec<String>
pub fn table_mapping(&self) -> Vec<String>
Return table to file mapping for diagnostics
Auto Trait Implementations§
impl Freeze for Writer
impl !RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl !UnwindSafe for Writer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more