pub struct Reader<S: AsRef<[u8]>> {
pub header: DbHeader,
/* private fields */
}
Fields§
§header: DbHeader
Implementations§
Source§impl Reader<Vec<u8>>
impl Reader<Vec<u8>>
Sourcepub fn open_readfile<P: AsRef<Path>>(
database: P,
) -> Result<Reader<Vec<u8>>, SQLiteError>
pub fn open_readfile<P: AsRef<Path>>( database: P, ) -> Result<Reader<Vec<u8>>, SQLiteError>
Open a SQLite database file by loading it into memory. Payloads are not copied until use, but all the metadata must be.
§Example
let reader = sqlite_parser_nom::Reader::open_readfile("sample/sakila.db").unwrap();
Auto Trait Implementations§
impl<S> Freeze for Reader<S>where
S: Freeze,
impl<S> RefUnwindSafe for Reader<S>where
S: RefUnwindSafe,
impl<S> Send for Reader<S>where
S: Send,
impl<S> Sync for Reader<S>where
S: Sync,
impl<S> Unpin for Reader<S>where
S: Unpin,
impl<S> UnwindSafe for Reader<S>where
S: UnwindSafe,
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