pub struct Connection<C: FirebirdClient> { /* private fields */ }
Expand description

A connection to a firebird database

Implementations

Open the client connection.

Create the database and start the client connection.

Drop the current database

Close the current connection.

Run a closure with a transaction, if the closure returns an error and the default transaction is not active, the transaction will rollback, else it will be committed

Begins a new transaction, and instructs all the query and execute methods performed in the Connection type to not automatically commit and rollback until commit or rollback are called

Commit the default transaction

Rollback the default transaction

Trait Implementations

Executes the destructor for this type. Read more

Execute a query, may or may not commit the changes and returns the affected rows count Read more

Execute a query that will return data, like the ‘insert … returning ..’ or ‘execute procedure’. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Returns the results of the query as an iterator. Read more

Returns the results of the query as a Vec Read more

Returns the first result of the query, or None. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.