Struct sp_database::Transaction [−][src]
Expand description
A series of changes to the database that can be committed atomically. They do not take effect
until passed into Database::commit
.
Implementations
Set the value of key
in col
to value
, replacing anything that is there currently.
Set the value of key
in col
to value
, replacing anything that is there currently.
Store the preimage
of hash
into the database, so that it may be looked up later with
Database::get
. This may be called multiple times, but subsequent
calls will ignore preimage
and simply increase the number of references on hash
.
Increase the number of references for hash
in the database.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<H> RefUnwindSafe for Transaction<H> where
H: RefUnwindSafe,
impl<H> Send for Transaction<H> where
H: Send,
impl<H> Sync for Transaction<H> where
H: Sync,
impl<H> Unpin for Transaction<H> where
H: Unpin,
impl<H> UnwindSafe for Transaction<H> where
H: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V