pub struct OracleConnectionConfig {
pub connect_string: Option<String>,
pub host: Option<String>,
pub port: Option<u16>,
pub service_name: Option<String>,
pub sid: Option<String>,
pub username: String,
pub password: String,
pub external_auth: bool,
pub tls: OracleTls,
}Expand description
Connection settings shared by the Oracle source, CDC source and sink.
Set either connect_string (an Easy Connect
string, a TNS alias resolved through tnsnames.ora, or a full connect
descriptor) or host plus exactly one of
service_name / sid. The host form is
rendered into a connect descriptor, which is where the tls
block takes effect.
Fields§
§connect_string: Option<String>Easy Connect (host:1521/FREEPDB1), TNS alias, or connect descriptor.
Mutually exclusive with host.
host: Option<String>Database host. Mutually exclusive with connect_string.
port: Option<u16>Listener port. Defaults to 1521 (2484 when tls.enabled).
service_name: Option<String>Service name (e.g. a PDB such as FREEPDB1). Mutually exclusive with sid.
sid: Option<String>Legacy SID. Mutually exclusive with service_name.
username: StringDatabase user. Required unless external_auth is set.
password: StringPassword for username.
external_auth: boolAuthenticate with external credentials (OS authentication or a wallet
holding the credentials) instead of username / password.
tls: OracleTlsTransport encryption (TCPS) for the host form.
Implementations§
Source§impl OracleConnectionConfig
impl OracleConnectionConfig
Sourcepub fn new(
host: impl Into<String>,
port: u16,
service_name: impl Into<String>,
username: impl Into<String>,
password: impl Into<String>,
) -> OracleConnectionConfig
pub fn new( host: impl Into<String>, port: u16, service_name: impl Into<String>, username: impl Into<String>, password: impl Into<String>, ) -> OracleConnectionConfig
A host/service_name connection with username and password.
Sourcepub fn validate(&self) -> Result<(), FaucetError>
pub fn validate(&self) -> Result<(), FaucetError>
Validate the fail-fast invariants.
Sourcepub fn resolve_connect_string(&self) -> Result<String, FaucetError>
pub fn resolve_connect_string(&self) -> Result<String, FaucetError>
The connect string handed to ODPI-C: connect_string verbatim, or a
connect descriptor rendered from the host form.
Sourcepub fn display_uri(&self) -> String
pub fn display_uri(&self) -> String
A credential-free URI naming the database, for lineage dataset_uris and
state-key derivation.
Sourcepub fn scope_label(&self) -> String
pub fn scope_label(&self) -> String
A short, key-safe scope used when deriving state keys: the host form
names host, port and service / SID (two databases with the same
service name on different hosts get different keys); the
connect_string form is the connect string itself.
Sourcepub fn legacy_scope_label(&self) -> Option<String>
pub fn legacy_scope_label(&self) -> Option<String>
The scope scope_label rendered before it named
the host and port (service / SID / host / connect string, first set),
when that differs — for moving a bookmark stored under the old key.
Trait Implementations§
Source§impl Clone for OracleConnectionConfig
impl Clone for OracleConnectionConfig
Source§fn clone(&self) -> OracleConnectionConfig
fn clone(&self) -> OracleConnectionConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OracleConnectionConfig
impl Debug for OracleConnectionConfig
Source§impl Default for OracleConnectionConfig
impl Default for OracleConnectionConfig
Source§fn default() -> OracleConnectionConfig
fn default() -> OracleConnectionConfig
Source§impl<'de> Deserialize<'de> for OracleConnectionConfig
impl<'de> Deserialize<'de> for OracleConnectionConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OracleConnectionConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OracleConnectionConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for OracleConnectionConfig
Source§impl JsonSchema for OracleConnectionConfig
impl JsonSchema for OracleConnectionConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for OracleConnectionConfig
impl PartialEq for OracleConnectionConfig
Source§impl Serialize for OracleConnectionConfig
impl Serialize for OracleConnectionConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for OracleConnectionConfig
Auto Trait Implementations§
impl Forget for OracleConnectionConfig
impl Freeze for OracleConnectionConfig
impl Move for OracleConnectionConfig
impl RefUnwindSafe for OracleConnectionConfig
impl Send for OracleConnectionConfig
impl Sync for OracleConnectionConfig
impl Unpin for OracleConnectionConfig
impl UnsafeUnpin for OracleConnectionConfig
impl UnwindSafe for OracleConnectionConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.