pub enum AnyBatch {
Memory(<MemoryDatabase as BatchDatabase>::Batch),
Sled(<Tree as BatchDatabase>::Batch),
Sqlite(<SqliteDatabase as BatchDatabase>::Batch),
}
Expand description
Type that contains any of the BatchDatabase::Batch
types defined by the library
Variants
Memory(<MemoryDatabase as BatchDatabase>::Batch)
In-memory ephemeral database
Sled(<Tree as BatchDatabase>::Batch)
This is supported on crate feature
key-value-db
only.Simple key-value embedded database based on sled
Sqlite(<SqliteDatabase as BatchDatabase>::Batch)
This is supported on crate feature
sqlite
only.Sqlite embedded database using rusqlite
Trait Implementations
fn set_script_pubkey(
&mut self,
script: &Script,
keychain: KeychainKind,
child: u32
) -> Result<(), Error>
fn set_script_pubkey(
&mut self,
script: &Script,
keychain: KeychainKind,
child: u32
) -> Result<(), Error>
Store a script_pubkey along with its keychain and child number.
Store a raw transaction
Store the metadata of a transaction
Store the last derivation index for a given keychain.
fn del_script_pubkey_from_path(
&mut self,
keychain: KeychainKind,
child: u32
) -> Result<Option<Script>, Error>
fn del_script_pubkey_from_path(
&mut self,
keychain: KeychainKind,
child: u32
) -> Result<Option<Script>, Error>
Delete a script_pubkey given the keychain and its child number.
fn del_path_from_script_pubkey(
&mut self,
script: &Script
) -> Result<Option<(KeychainKind, u32)>, Error>
fn del_path_from_script_pubkey(
&mut self,
script: &Script
) -> Result<Option<(KeychainKind, u32)>, Error>
Delete the data related to a specific script_pubkey, meaning the keychain and the child number. Read more
Delete a raw transaction given its Txid
Delete the metadata of a transaction and optionally the raw transaction itself
Delete the last derivation index for a keychain.
Performs the conversion.
Performs the conversion.