pub struct PostgresCatalogBuilder { /* private fields */ }Implementations§
Source§impl PostgresCatalogBuilder
impl PostgresCatalogBuilder
pub fn new( host: impl Into<String>, port: u16, user: impl Into<String>, password: impl Into<String>, ) -> Self
pub fn dbname(self, dbname: impl Into<String>) -> Self
pub fn pool_max_size(self, pool_max_size: u32) -> Self
pub fn pool_min_idle(self, pool_min_idle: Option<u32>) -> Self
pub fn pool_idle_timeout(self, pool_idle_timeout: Option<Duration>) -> Self
pub async fn build(self) -> ILResult<PostgresCatalog>
Auto Trait Implementations§
impl Freeze for PostgresCatalogBuilder
impl RefUnwindSafe for PostgresCatalogBuilder
impl Send for PostgresCatalogBuilder
impl Sync for PostgresCatalogBuilder
impl Unpin for PostgresCatalogBuilder
impl UnsafeUnpin for PostgresCatalogBuilder
impl UnwindSafe for PostgresCatalogBuilder
Blanket Implementations§
impl<T> Allocation for T
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