pub struct PostgresConnection {
pub conn: PooledConnection<'static, PostgresConnectionManager<NoTls>>,
pub options: Arc<PostgresConnectionOptions>,
}Fields§
§conn: PooledConnection<'static, PostgresConnectionManager<NoTls>>§options: Arc<PostgresConnectionOptions>Trait Implementations§
Source§impl Connection for PostgresConnection
impl Connection for PostgresConnection
fn as_any(&self) -> &dyn Any
fn infer_schema<'life0, 'life1, 'async_trait>(
&'life0 self,
source: &'life1 RemoteSource,
) -> Pin<Box<dyn Future<Output = Result<RemoteSchemaRef>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
conn_options: &'life1 ConnectionOptions,
source: &'life2 RemoteSource,
table_schema: SchemaRef,
projection: Option<&'life3 Vec<usize>>,
unparsed_filters: &'life4 [String],
limit: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<SendableRecordBatchStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn insert<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_conn_options: &'life1 ConnectionOptions,
literalizer: Arc<dyn Literalize>,
table: &'life2 [String],
remote_schema: RemoteSchemaRef,
batch: RecordBatch,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for PostgresConnection
impl !UnwindSafe for PostgresConnection
impl Freeze for PostgresConnection
impl Send for PostgresConnection
impl Sync for PostgresConnection
impl Unpin for PostgresConnection
impl UnsafeUnpin for PostgresConnection
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
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more