Struct qldb::Transaction[][src]

pub struct Transaction { /* fields omitted */ }
Expand description

Every query in QLDB is within a transaction. Ideally you will interact with this object via the method QLDBClient::transaction_within.

Implementations

Sends a query to QLDB. It will return an Array of IonValues already decoded. Parameters need to be provided using IonValue.

Cancels the transaction. Once rollback is called the transaction becomes invalid. Subsequent calls to rollback or commit (internally) won’t have any effect.

It fails is the transaction is already committed. For a rollback that doesn’t fail when already committed you can check the silent_rollback method.

Cancels the transaction but it doesn’t fails is the transaction was already committed. This is useful for auto-closing scenarios where you just want to rollback always when there is a drop or something similar.

Once rollback is called the transaction becomes invalid. Subsequent calls to rollback or commit (internally) won’t have any effect.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Applies the Compat adapter by value. Read more

Applies the Compat adapter by shared reference. Read more

Applies the Compat adapter by mutable reference. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.