pub trait OracleConnection: Send + Sync {
// Required methods
fn backend(&self) -> OracleBackend;
fn ping<'life0, 'life1, 'async_trait>(
&'life0 self,
cx: &'life1 Cx,
) -> Pin<Box<dyn Future<Output = Result<(), CatalogError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn describe<'life0, 'life1, 'async_trait>(
&'life0 self,
cx: &'life1 Cx,
) -> Pin<Box<dyn Future<Output = Result<OracleConnectionInfo, CatalogError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn query_rows<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 Cx,
sql: &'life2 str,
params: &'life3 [OracleBind],
) -> Pin<Box<dyn Future<Output = Result<Vec<OracleRow>, CatalogError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 Cx,
sql: &'life2 str,
params: &'life3 [OracleBind],
) -> Pin<Box<dyn Future<Output = Result<u64, CatalogError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
// Provided methods
fn query_optional_row<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 Cx,
sql: &'life2 str,
params: &'life3 [OracleBind],
) -> Pin<Box<dyn Future<Output = Result<Option<OracleRow>, CatalogError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn query_one_row<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 Cx,
sql: &'life2 str,
params: &'life3 [OracleBind],
) -> Pin<Box<dyn Future<Output = Result<OracleRow, CatalogError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
}Required Methods§
fn backend(&self) -> OracleBackend
fn ping<'life0, 'life1, 'async_trait>(
&'life0 self,
cx: &'life1 Cx,
) -> Pin<Box<dyn Future<Output = Result<(), CatalogError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn describe<'life0, 'life1, 'async_trait>(
&'life0 self,
cx: &'life1 Cx,
) -> Pin<Box<dyn Future<Output = Result<OracleConnectionInfo, CatalogError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query_rows<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 Cx,
sql: &'life2 str,
params: &'life3 [OracleBind],
) -> Pin<Box<dyn Future<Output = Result<Vec<OracleRow>, CatalogError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 Cx,
sql: &'life2 str,
params: &'life3 [OracleBind],
) -> Pin<Box<dyn Future<Output = Result<u64, CatalogError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Provided Methods§
fn query_optional_row<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 Cx,
sql: &'life2 str,
params: &'life3 [OracleBind],
) -> Pin<Box<dyn Future<Output = Result<Option<OracleRow>, CatalogError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn query_one_row<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 Cx,
sql: &'life2 str,
params: &'life3 [OracleBind],
) -> Pin<Box<dyn Future<Output = Result<OracleRow, CatalogError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".