Struct rsfbclient::builders::PureRustConnectionBuilder [−][src]
A builder for a firebird client implemented in pure rust. Does not currently support embedded connections.
Use builder_pure_rust()
to obtain a new instance.
Implementations
impl PureRustConnectionBuilder
[src]
pub fn connect(&self) -> Result<Connection<RustFbClient>, FbError>
[src]
pub fn user<S: Into<String>>(&mut self, user: S) -> &mut Self
[src]
Username. Default: SYSDBA
pub fn db_name<S: Into<String>>(&mut self, db_name: S) -> &mut Self
[src]
Database name or path. Default: test.fdb
pub fn host<S: Into<String>>(&mut self, host: S) -> &mut Self
[src]
Hostname or IP address of the server. Default: localhost
pub fn port(&mut self, port: u16) -> &mut Self
[src]
TCP Port of the server. Default: 3050
pub fn pass<S: Into<String>>(&mut self, pass: S) -> &mut Self
[src]
Password. Default: masterkey
pub fn dialect(&mut self, dialect: Dialect) -> &mut Self
[src]
SQL Dialect. Default: 3
pub fn stmt_cache_size(&mut self, stmt_cache_size: usize) -> &mut Self
[src]
Statement cache size. Default: 20
pub fn charset(&mut self, charset: Charset) -> &mut Self
[src]
Connection charset. Default: UTF-8
pub fn from_string(&mut self, s_conn: &str) -> Result<&mut Self, FbError>
[src]
Setup the connection using the string pattern.
You can use the others methods(host()
,user()
…) to config
some default values.
Basic string syntax: firebird://{user}:{pass}@{host}:{port}/{db_name}?charset={charset}&dialect={dialect}
Trait Implementations
impl Default for PureRustConnectionBuilder
[src]
impl FirebirdClientFactory for PureRustConnectionBuilder
[src]
type C = RustFbClient
fn new_instance(&self) -> Result<Self::C, FbError>
[src]
fn get_conn_conf(
&self
) -> &ConnectionConfiguration<RustFbClientAttachmentConfig>
[src]
&self
) -> &ConnectionConfiguration<RustFbClientAttachmentConfig>
impl From<&'_ PureRustConnectionBuilder> for ConnectionConfiguration<RustFbClientAttachmentConfig>
[src]
fn from(arg: &PureRustConnectionBuilder) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PureRustConnectionBuilder
impl Send for PureRustConnectionBuilder
impl Sync for PureRustConnectionBuilder
impl Unpin for PureRustConnectionBuilder
impl !UnwindSafe for PureRustConnectionBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,