Struct oracle::oci_attr::DefaultLobPrefetchSize
source · 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])?;