[−][src]Struct rsfbclient::Connection
Implementations
impl Connection
[src]
pub fn open(
host: &str,
port: u16,
db_name: &str,
user: &str,
pass: &str
) -> Result<Connection, FbError>
[src]
host: &str,
port: u16,
db_name: &str,
user: &str,
pass: &str
) -> Result<Connection, FbError>
Open a new connection to the remote database
pub fn open_local(db_name: &str) -> Result<Connection, FbError>
[src]
Open a new connection to the local database
pub fn create_local(db_name: &str) -> Result<(), FbError>
[src]
Create a new local database
pub fn drop_database(self) -> Result<(), FbError>
[src]
Drop the current database
pub fn recreate_local(db_name: &str) -> Result<(), FbError>
[src]
pub fn close(self) -> Result<(), FbError>
[src]
Close the current connection
pub fn transaction(&self) -> Result<Transaction, FbError>
[src]
Starts a new transaction
Trait Implementations
impl Drop for Connection
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Connection
impl Send for Connection
impl !Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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,
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, 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.
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>,