FirebirdClientFactory

Trait FirebirdClientFactory 

Source
pub trait FirebirdClientFactory {
    type C: FirebirdClient;

    // Required methods
    fn new_instance(&self) -> Result<Self::C, FbError>;
    fn get_conn_conf(
        &self,
    ) -> &ConnectionConfiguration<<Self::C as FirebirdClientDbOps>::AttachmentConfig>;
}
Expand description

A generic factory for creating multiple preconfigured instances of a particular client implementation Intended mainly for use by connection pool

Required Associated Types§

Required Methods§

Source

fn new_instance(&self) -> Result<Self::C, FbError>

Construct a new instance of a client

Source

fn get_conn_conf( &self, ) -> &ConnectionConfiguration<<Self::C as FirebirdClientDbOps>::AttachmentConfig>

Pull the connection configuration details out as a borrow

Implementors§

Source§

impl FirebirdClientFactory for PureRustConnectionBuilder

Source§

impl<A> FirebirdClientFactory for NativeConnectionBuilder<DynLink, A>
where A: ConfiguredConnType,

Available on crate feature linking only.
Source§

impl<A> FirebirdClientFactory for NativeConnectionBuilder<DynLoad, A>
where A: ConfiguredConnType,

Available on crate feature dynamic_loading only.