[−][src]Trait rsfbclient_core::FirebirdClientDbOps
Responsible for database administration and attachment/detachment
Associated Types
type DbHandle: Send
[src]
A database handle
type AttachmentConfig: Send + Clone
[src]
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
Required methods
pub fn attach_database(
&mut self,
config: &Self::AttachmentConfig
) -> Result<Self::DbHandle, FbError>
[src]
&mut self,
config: &Self::AttachmentConfig
) -> Result<Self::DbHandle, FbError>
Create a new attachment to a database with the provided configuration Returns a database handle on success
pub fn detach_database(
&mut self,
db_handle: &mut Self::DbHandle
) -> Result<(), FbError>
[src]
&mut self,
db_handle: &mut Self::DbHandle
) -> Result<(), FbError>
Disconnect from the database
pub fn drop_database(
&mut self,
db_handle: &mut Self::DbHandle
) -> Result<(), FbError>
[src]
&mut self,
db_handle: &mut Self::DbHandle
) -> Result<(), FbError>
Drop the database