Struct rsfbclient::builders::PureRustConnectionBuilder[][src]

pub struct PureRustConnectionBuilder(_, _);

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

impl From<&'_ PureRustConnectionBuilder> for ConnectionConfiguration<RustFbClientAttachmentConfig>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,