#[non_exhaustive]pub struct Info {
pub db_domain: String,
pub db_name: String,
pub instance_name: String,
pub service_name: String,
pub max_identifier_length: u32,
pub max_open_cursors: u32,
pub server_type: ServerType,
}
Expand description
Information about a connection
This is a return value of Connection::info()
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.db_domain: String
The name of the Oracle Database Domain name associated with the connection
This is the same value returned by the SQL expression
SELECT VALUE FROM V$PARAMETER WHERE NAME = 'db_domain'
.
db_name: String
The Oracle Database name associated with the connection
This is the same value returned by the SQL expression
SELECT NAME FROM V$DATABASE
.
Note the values may have different cases.
instance_name: String
The Oracle Database instance name associated with the connection
This is the same value returned by the SQL expression
SELECT SYS_CONTEXT('USERENV', 'INSTANCE_NAME') FROM DUAL
.
Note the values may have different cases.
service_name: String
The Oracle Database service name associated with the connection
This is the same value returned by the SQL expression
SELECT SYS_CONTEXT('USERENV', 'SERVICE_NAME') FROM DUAL
.
max_identifier_length: u32
The maximum length of identifiers (in bytes) supported by the database to which the connection has been established
max_open_cursors: u32
The maximum number of cursors that can be opened
This is the same value returned by the SQL expression
SELECT VALUE FROM V$PARAMETER WHERE NAME = 'open_cursors'
.
server_type: ServerType
The type of server process used by the connection
This is only available with Oracle Client libraries 23.4 or higher.
Otherwise, it is always ServerType::Unknown
.