hopr_db_sql

Type Alias OptTx

Source
pub type OptTx<'a> = Option<&'a OpenTransaction>;
Expand description

Shorthand for optional transaction. Useful for transaction nesting (see HoprDbGeneralModelOperations::nest_transaction).

Aliased Type§

enum OptTx<'a> {
    None,
    Some(&'a OpenTransaction),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(&'a OpenTransaction)

Some value of type T.