pub struct Reader { /* private fields */ }Expand description
Reader of apidb schema dump produced by pg_dump
Implementations§
Source§impl Reader
impl Reader
Sourcepub fn new(input_path: PathBuf, tmp_path: PathBuf) -> Result<Reader, Error>
pub fn new(input_path: PathBuf, tmp_path: PathBuf) -> Result<Reader, Error>
Create a new Reader
- input_path - a path to directory that contains apidb schema dump produced by pg_dump with directory format. For example:
pg_dump --host localhost --port 5432 --username openstreetmap --no-password --file /result --format d -d openstreetmap --compress 0 --table public.nodes --table public.node_tags --table public.ways --table public.way_nodes --table public.way_tags --table public.relations --table public.relation_members --table public.relation_tags --table public.changesets --table public.usersThe input is sorted using primary keys for each table found in input_path/toc.dat which may take significant time depending on the size of the input
- tmp_path - location used by the sorting algorithm for intermediate and final result. Should have space for at least 2.2 * input size
Auto Trait Implementations§
impl Freeze for Reader
impl RefUnwindSafe for Reader
impl Send for Reader
impl Sync for Reader
impl Unpin for Reader
impl UnwindSafe for Reader
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