Module tables

Source
Expand description

Database tables.

§Table marker structs

This module contains all the table definitions used by cuprate_blockchain.

The zero-sized structs here represents the table type; they all are essentially marker types that implement cuprate_database::Table.

Table structs are CamelCase, and their static string names used by the actual database backend are snake_case.

For example: BlockHeaderBlobs -> block_header_blobs.

§Traits

This module also contains a set of traits for accessing all tables defined here at once.

Structs§

AltBlockBlobs
Alt-block blobs.
AltBlockHeights
Alt-block heights.
AltBlocksInfo
Alt-block information.
AltChainInfos
Information on alt-chains.
AltTransactionBlobs
Alt-block transaction blobs.
AltTransactionInfos
Alt-block transaction information.
BlockHeaderBlobs
Serialized block header blobs (bytes).
BlockHeights
Block heights.
BlockInfos
Block information.
BlockTxsHashes
Block transactions hashes
KeyImages
Set of key images.
NumOutputs
Maps an output’s amount to the number of outputs with that amount.
Outputs
Pre-RCT output data.
PrunableHashes
Prunable transaction hashes.
PrunableTxBlobs
Prunable transaction blobs (bytes).
PrunedTxBlobs
Pruned transaction blobs (bytes).
RctOutputs
RCT output data.
TxBlobs
Transaction blobs (bytes).
TxHeights
Transaction heights.
TxIds
Transaction indices.
TxOutputs
Transaction outputs.
TxUnlockTime
Transaction unlock time.

Traits§

OpenTables
Open all tables at once.
Tables
Object containing all opened Tables in read-only mode.
TablesIter
Object containing all opened Tables in read + iter mode.
TablesMut
Object containing all opened Tables in write mode.