pub struct DefaultLobPrefetchSize;
Expand description
A type parameter for Connection::oci_attr
and Connection::set_oci_attr
to get and set OCI_ATTR_DEFAULT_LOBPREFETCH_SIZE
,
which specifies the default prefetch buffer size for each LOB locator
§Examples
use oracle::oci_attr::DefaultLobPrefetchSize;
let lob_size = 64 * 1024;
conn.set_oci_attr::<DefaultLobPrefetchSize>(&lob_size)?;
let mut stmt = conn
.statement("select CLOBCol from TestCLOBs where IntCol = :1")
.lob_locator()
.build()?;
let lob = stmt.query_row_as::<Clob>(&[&1])?;
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DefaultLobPrefetchSize
impl RefUnwindSafe for DefaultLobPrefetchSize
impl Send for DefaultLobPrefetchSize
impl Sync for DefaultLobPrefetchSize
impl Unpin for DefaultLobPrefetchSize
impl UnwindSafe for DefaultLobPrefetchSize
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