pub struct PostgresCatalog { /* private fields */ }Implementations§
Source§impl PostgresCatalog
impl PostgresCatalog
pub fn new(pool: Pool<PostgresConnectionManager<NoTls>>) -> Self
Trait Implementations§
Source§impl Catalog for PostgresCatalog
impl Catalog for PostgresCatalog
fn database(&self) -> CatalogDatabase
fn query<'life0, 'life1, 'async_trait>(
&'life0 self,
sql: &'life1 str,
schema: CatalogSchemaRef,
) -> Pin<Box<dyn Future<Output = ILResult<RowStream<'static>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn transaction<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ILResult<Box<dyn Transaction>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn transaction<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ILResult<Box<dyn Transaction>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Begin a new transaction.
fn truncate<'life0, 'life1, 'async_trait>(
&'life0 self,
table_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = ILResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn size<'life0, 'life1, 'async_trait>(
&'life0 self,
table_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = ILResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sql_identifier(&self, ident: &str) -> String
fn sql_binary_literal(&self, value: &[u8]) -> String
fn sql_uuid_literal(&self, value: &Uuid) -> String
fn sql_string_literal(&self, value: &str) -> String
fn supports_filter(&self, filter: &Expr, _schema: &Schema) -> ILResult<bool>
fn unparse_expr(&self, expr: &Expr) -> ILResult<String>
fn unparse_catalog_data_type(&self, data_type: CatalogDataType) -> String
Source§impl Clone for PostgresCatalog
impl Clone for PostgresCatalog
Source§fn clone(&self) -> PostgresCatalog
fn clone(&self) -> PostgresCatalog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PostgresCatalog
impl !UnwindSafe for PostgresCatalog
impl Freeze for PostgresCatalog
impl Send for PostgresCatalog
impl Sync for PostgresCatalog
impl Unpin for PostgresCatalog
impl UnsafeUnpin for PostgresCatalog
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