[−][src]Struct rsfbclient::SimpleConnection
A connection API without client types
Implementations
impl SimpleConnection
[src]
pub fn drop_database(self) -> Result<(), FbError>
[src]
Drop the current database
pub fn close(self) -> Result<(), FbError>
[src]
Close the current connection.
pub fn with_transaction<T, F>(&mut self, closure: F) -> Result<T, FbError> where
F: FnOnce(&mut SimpleTransaction<'_>) -> Result<T, FbError>,
[src]
F: FnOnce(&mut SimpleTransaction<'_>) -> Result<T, FbError>,
Run a closure with a transaction, if the closure returns an error the transaction will rollback, else it will be committed
Trait Implementations
impl Execute for SimpleConnection
[src]
pub fn execute<P>(&mut self, sql: &str, params: P) -> Result<(), FbError> where
P: IntoParams,
[src]
P: IntoParams,
pub fn execute_returnable<P, R>(
&mut self,
sql: &str,
params: P
) -> Result<R, FbError> where
P: IntoParams,
R: FromRow + 'static,
[src]
&mut self,
sql: &str,
params: P
) -> Result<R, FbError> where
P: IntoParams,
R: FromRow + 'static,
impl From<Connection<NativeFbClient<DynLink>>> for SimpleConnection
[src]
pub fn from(conn: Connection<NativeFbClient<DynLink>>) -> Self
[src]
impl From<Connection<NativeFbClient<DynLoad>>> for SimpleConnection
[src]
pub fn from(conn: Connection<NativeFbClient<DynLoad>>) -> Self
[src]
impl From<Connection<RustFbClient>> for SimpleConnection
[src]
pub fn from(conn: Connection<RustFbClient>) -> Self
[src]
impl Queryable for SimpleConnection
[src]
pub fn query_iter<'a, P, R>(
&'a mut self,
sql: &str,
params: P
) -> Result<Box<dyn Iterator<Item = Result<R, FbError>> + 'a>, FbError> where
P: IntoParams,
R: FromRow + 'static,
[src]
&'a mut self,
sql: &str,
params: P
) -> Result<Box<dyn Iterator<Item = Result<R, FbError>> + 'a>, FbError> where
P: IntoParams,
R: FromRow + 'static,
pub fn query<'a, P, R>(
&'a mut self,
sql: &str,
params: P
) -> Result<Vec<R>, FbError> where
P: IntoParams,
R: FromRow + 'static,
[src]
&'a mut self,
sql: &str,
params: P
) -> Result<Vec<R>, FbError> where
P: IntoParams,
R: FromRow + 'static,
pub fn query_first<'a, P, R>(
&'a mut self,
sql: &str,
params: P
) -> Result<Option<R>, FbError> where
P: IntoParams,
R: FromRow + 'static,
[src]
&'a mut self,
sql: &str,
params: P
) -> Result<Option<R>, FbError> where
P: IntoParams,
R: FromRow + 'static,
impl TryFrom<SimpleConnection> for Connection<NativeFbClient<DynLink>>
[src]
type Error = FbError
The type returned in the event of a conversion error.
pub fn try_from(conn: SimpleConnection) -> Result<Self, Self::Error>
[src]
impl TryFrom<SimpleConnection> for Connection<NativeFbClient<DynLoad>>
[src]
type Error = FbError
The type returned in the event of a conversion error.
pub fn try_from(conn: SimpleConnection) -> Result<Self, Self::Error>
[src]
impl TryFrom<SimpleConnection> for Connection<RustFbClient>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SimpleConnection
[src]
impl Send for SimpleConnection
[src]
impl !Sync for SimpleConnection
[src]
impl Unpin for SimpleConnection
[src]
impl !UnwindSafe for SimpleConnection
[src]
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>,