Struct rsfbclient_native::NativeFbClient [−][src]
pub struct NativeFbClient<T: LinkageMarker> { /* fields omitted */ }
Expand description
Client that wraps the native fbclient library
Trait Implementations
type DbHandle = isc_db_handle
type DbHandle = isc_db_handle
A database handle
Configuration details for attaching to the database. A user of an implementation of this trait can configure attachment details (database name, user name, etcetera) and then pass this configuration to the implementation via this type when a new attachment is requested Read more
fn attach_database(
&mut self,
config: &Self::AttachmentConfig
) -> Result<isc_db_handle, FbError>
fn attach_database(
&mut self,
config: &Self::AttachmentConfig
) -> Result<isc_db_handle, FbError>
Create a new attachment to a database with the provided configuration Returns a database handle on success Read more
Disconnect from the database
Drop the database
fn create_database(
&mut self,
config: &Self::AttachmentConfig,
page_size: Option<u32>
) -> Result<isc_db_handle, FbError>
fn create_database(
&mut self,
config: &Self::AttachmentConfig,
page_size: Option<u32>
) -> Result<isc_db_handle, FbError>
Create the database and attach Returns a database handle on success Read more
type DbHandle = isc_db_handle
type DbHandle = isc_db_handle
A database handle
type TrHandle = isc_tr_handle
type TrHandle = isc_tr_handle
A transaction handle
type StmtHandle = StmtHandleData
type StmtHandle = StmtHandleData
A statement handle
fn begin_transaction(
&mut self,
db_handle: &mut Self::DbHandle,
isolation_level: TrIsolationLevel
) -> Result<Self::TrHandle, FbError>
fn begin_transaction(
&mut self,
db_handle: &mut Self::DbHandle,
isolation_level: TrIsolationLevel
) -> Result<Self::TrHandle, FbError>
Start a new transaction, with the specified transaction parameter buffer
Commit / Rollback a transaction
Execute a sql immediately, without returning rows
Allocate and prepare a statement Returns the statement type and handle Read more
fn free_statement(
&mut self,
stmt_handle: &mut Self::StmtHandle,
op: FreeStmtOp
) -> Result<(), FbError>
fn free_statement(
&mut self,
stmt_handle: &mut Self::StmtHandle,
op: FreeStmtOp
) -> Result<(), FbError>
Closes or drops a statement
Execute the prepared statement with parameters and returns the affected rows count Read more
Fetch rows from the executed statement, coercing the types according to the provided blr Read more
Auto Trait Implementations
impl<T> !RefUnwindSafe for NativeFbClient<T>
impl<T> Send for NativeFbClient<T>
impl<T> Sync for NativeFbClient<T> where
<T as LinkageMarker>::L: Sync,
impl<T> Unpin for NativeFbClient<T> where
<T as LinkageMarker>::L: Unpin,
impl<T> !UnwindSafe for NativeFbClient<T>
Blanket Implementations
Mutably borrows from an owned value. Read more