Expand description
Rust-oracle is based on ODPI-C using Oracle Call Interface (OCI) internally. OCI treats resources as handles, which have various attributes documented here.
The module defines type parameters to access some OCI attributes and
the trait OciAttr
to define your own type parameters to access attributes
which are not predefined in this module.
Modules§
- data_
type - The module defines types related to the associate type
OciAttr::DataType
. - handle
- The module defines types to be set to the associate type
OciAttr::HandleType
- mode
- The module defines types to be set to the associate type
OciAttr::Mode
Structs§
- Call
Time - A type parameter for
Connection::oci_attr
to getOCI_ATTR_CALL_TIME
asDuration
, which is the server-side time for the preceding call - Collect
Call Time - A type parameter for
Connection::oci_attr
andConnection::set_oci_attr
to get and setOCI_ATTR_COLLECT_CALL_TIME
, which causes the server to measure call time for each subsequent OCI call - Default
LobPrefetch Size - A type parameter for
Connection::oci_attr
andConnection::set_oci_attr
to get and setOCI_ATTR_DEFAULT_LOBPREFETCH_SIZE
, which specifies the default prefetch buffer size for each LOB locator - MaxOpen
Cursors - A type parameter for
Connection::oci_attr
to getOCI_ATTR_MAX_OPEN_CURSORS
, which is the maximum number of SQL statements that can be opened in one session - SqlFn
Code - A type parameter for
Statement::oci_attr
to getOCI_ATTR_SQLFNCODE
, which is the function code of the SQL command associated with the statement. - Statement
- A type parameter for
Statement::oci_attr
to getOCI_ATTR_STATEMENT
, which is the text of the SQL statement prepared. - Transaction
InProgress - A type parameter for
Connection::oci_attr
to getOCI_ATTR_TRANSACTION_IN_PROGRESS
asbool
, which indicates whether the connection has a currently active transaction. - VarType
MaxLen Compat - A type parameter for
Connection::oci_attr
to getOCI_ATTR_VARTYPE_MAXLEN_COMPAT
asMaxStringSize
. which controls the maximum size ofVARCHAR2
,NVARCHAR
andRAW
.