Module oci_attr

Source
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§

CallTime
A type parameter for Connection::oci_attr to get OCI_ATTR_CALL_TIME as Duration, which is the server-side time for the preceding call
CollectCallTime
A type parameter for Connection::oci_attr and Connection::set_oci_attr to get and set OCI_ATTR_COLLECT_CALL_TIME, which causes the server to measure call time for each subsequent OCI call
DefaultLobPrefetchSize
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
MaxOpenCursors
A type parameter for Connection::oci_attr to get OCI_ATTR_MAX_OPEN_CURSORS, which is the maximum number of SQL statements that can be opened in one session
SqlFnCode
A type parameter for Statement::oci_attr to get OCI_ATTR_SQLFNCODE, which is the function code of the SQL command associated with the statement.
Statement
A type parameter for Statement::oci_attr to get OCI_ATTR_STATEMENT, which is the text of the SQL statement prepared.
TransactionInProgress
A type parameter for Connection::oci_attr to get OCI_ATTR_TRANSACTION_IN_PROGRESS as bool, which indicates whether the connection has a currently active transaction.
VarTypeMaxLenCompat
A type parameter for Connection::oci_attr to get OCI_ATTR_VARTYPE_MAXLEN_COMPAT as MaxStringSize. which controls the maximum size of VARCHAR2, NVARCHAR and RAW.

Traits§

OciAttr