pub struct NativeFbClient<T: LinkageMarker> { /* private fields */ }
Expand description
Client that wraps the native fbclient library
Trait Implementations§
Source§impl<T: LinkageMarker> FirebirdClientDbEvents for NativeFbClient<T>
impl<T: LinkageMarker> FirebirdClientDbEvents for NativeFbClient<T>
Source§impl<T: LinkageMarker> FirebirdClientDbOps for NativeFbClient<T>
impl<T: LinkageMarker> FirebirdClientDbOps for NativeFbClient<T>
Source§type AttachmentConfig = NativeFbAttachmentConfig
type AttachmentConfig = NativeFbAttachmentConfig
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
Source§fn attach_database(
&mut self,
config: &Self::AttachmentConfig,
dialect: Dialect,
no_db_triggers: bool,
) -> Result<isc_db_handle, FbError>
fn attach_database( &mut self, config: &Self::AttachmentConfig, dialect: Dialect, no_db_triggers: bool, ) -> Result<isc_db_handle, FbError>
Create a new attachment to a database with the provided configuration
Returns a database handle on success
Source§fn detach_database(
&mut self,
db_handle: &mut isc_db_handle,
) -> Result<(), FbError>
fn detach_database( &mut self, db_handle: &mut isc_db_handle, ) -> Result<(), FbError>
Disconnect from the database
Source§fn drop_database(
&mut self,
db_handle: &mut isc_db_handle,
) -> Result<(), FbError>
fn drop_database( &mut self, db_handle: &mut isc_db_handle, ) -> Result<(), FbError>
Drop the database
Source§fn create_database(
&mut self,
config: &Self::AttachmentConfig,
page_size: Option<u32>,
dialect: Dialect,
) -> Result<isc_db_handle, FbError>
fn create_database( &mut self, config: &Self::AttachmentConfig, page_size: Option<u32>, dialect: Dialect, ) -> Result<isc_db_handle, FbError>
Create the database and attach
Returns a database handle on success
Source§impl<T: LinkageMarker> FirebirdClientSqlOps for NativeFbClient<T>
impl<T: LinkageMarker> FirebirdClientSqlOps for NativeFbClient<T>
Source§type StmtHandle = StmtHandleData
type StmtHandle = StmtHandleData
A statement handle
Source§fn begin_transaction(
&mut self,
db_handle: &mut Self::DbHandle,
confs: TransactionConfiguration,
) -> Result<Self::TrHandle, FbError>
fn begin_transaction( &mut self, db_handle: &mut Self::DbHandle, confs: TransactionConfiguration, ) -> Result<Self::TrHandle, FbError>
Start a new transaction, with the specified transaction parameter buffer
Source§fn transaction_operation(
&mut self,
tr_handle: &mut Self::TrHandle,
op: TrOp,
) -> Result<(), FbError>
fn transaction_operation( &mut self, tr_handle: &mut Self::TrHandle, op: TrOp, ) -> Result<(), FbError>
Commit / Rollback a transaction
Source§fn exec_immediate(
&mut self,
db_handle: &mut Self::DbHandle,
tr_handle: &mut Self::TrHandle,
dialect: Dialect,
sql: &str,
) -> Result<(), FbError>
fn exec_immediate( &mut self, db_handle: &mut Self::DbHandle, tr_handle: &mut Self::TrHandle, dialect: Dialect, sql: &str, ) -> Result<(), FbError>
Execute a sql immediately, without returning rows
Source§fn prepare_statement(
&mut self,
db_handle: &mut Self::DbHandle,
tr_handle: &mut Self::TrHandle,
dialect: Dialect,
sql: &str,
) -> Result<(StmtType, Self::StmtHandle), FbError>
fn prepare_statement( &mut self, db_handle: &mut Self::DbHandle, tr_handle: &mut Self::TrHandle, dialect: Dialect, sql: &str, ) -> Result<(StmtType, Self::StmtHandle), FbError>
Allocate and prepare a statement
Returns the statement type and handle
Source§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
Source§fn execute(
&mut self,
db_handle: &mut Self::DbHandle,
tr_handle: &mut Self::TrHandle,
stmt_handle: &mut Self::StmtHandle,
params: Vec<SqlType>,
) -> Result<usize, FbError>
fn execute( &mut self, db_handle: &mut Self::DbHandle, tr_handle: &mut Self::TrHandle, stmt_handle: &mut Self::StmtHandle, params: Vec<SqlType>, ) -> Result<usize, FbError>
Execute the prepared statement with parameters
and returns the affected rows count
Auto Trait Implementations§
impl<T> Freeze for NativeFbClient<T>
impl<T> !RefUnwindSafe for NativeFbClient<T>
impl<T> Send for NativeFbClient<T>
impl<T> Sync for NativeFbClient<T>
impl<T> Unpin for NativeFbClient<T>
impl<T> !UnwindSafe for NativeFbClient<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more