Struct mimir::AppContext
[−]
[src]
pub struct AppContext { /* fields omitted */ }
This structure is used for passing application context to the database during the process of creating standalone connections. These values are ignored when acquiring a connection from a session pool or when using DRCP (Database Resident Connection Pooling).
Methods
impl AppContext
[src]
fn new(namespace: &str, name: &str, value: &str) -> AppContext
Create a new AppContext
struct.
fn from_odpi(ctxt: ODPIAppContext) -> AppContext
Create a new AppContext
struct from an ODPI-C dpiAppContext struct.
fn get_namespace_name(&self) -> String
Get the namespace_name
value.
Specifies the value of the "namespace" parameter to sys_context(). It is expected to be a
byte string in the encoding specified in the ODPIConnCreateParams
structure and must not
be NULL.
fn get_name(&self) -> String
Get the name
value.
Specifies the value of the "parameter" parameter to sys_context(). It is expected to be a
byte string in the encoding specified in the ODPIConnCreateParams
structure and must not
be NULL.
fn get_value(&self) -> String
Get the value
value.
Specifies the value that will be returned from sys_context(). It is expected to be a byte
string in the encoding specified in the ODPIConnCreateParams
structure and must not be
NULL.