pub struct CratesIODumpLoader {
pub resource: String,
pub files: Vec<PathBuf>,
pub cache: Cache,
pub target_path: PathBuf,
pub preload: bool,
/* private fields */
}
Fields§
§resource: String
§files: Vec<PathBuf>
§cache: Cache
§target_path: PathBuf
§preload: bool
Implementations§
Source§impl CratesIODumpLoader
impl CratesIODumpLoader
pub fn resource(&mut self, path: &str) -> &mut Self
pub fn files(&mut self, files: Vec<PathBuf>) -> &mut Self
pub fn tables(&mut self, tables: &[&str]) -> &mut Self
pub fn table_schema(&mut self, table: &str, schema: &str) -> &mut Self
pub fn target_path(&mut self, path: &Path) -> &mut Self
pub fn cache(&mut self, builder: CacheBuilder) -> Result<&mut Self, Error>
pub fn preload(&mut self, should: bool) -> &mut Self
pub fn minimal(&mut self) -> &mut Self
pub fn update(&mut self) -> Result<&mut Self, Error>
pub fn sqlite_path(&self) -> PathBuf
pub fn open_db(&mut self) -> Result<Connection, Error>
pub fn load_dump_into(&mut self, db: &Connection) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CratesIODumpLoader
impl !RefUnwindSafe for CratesIODumpLoader
impl Send for CratesIODumpLoader
impl Sync for CratesIODumpLoader
impl Unpin for CratesIODumpLoader
impl !UnwindSafe for CratesIODumpLoader
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