Skip to main content

Module dht

Module dht 

Source
Expand description

DHT database operations.

Internally split into three layers:

  • inner: free-standing async fns over sqlx::Executor per DHT table (one submodule per table).
  • db_operations: thin DbRead<Dht> / DbWrite<Dht> method wrappers that acquire a pool executor and delegate into inner.
  • tx_operations: thin TxRead<Dht> / TxWrite<Dht> method wrappers that delegate into inner using the in-flight transaction.

Public API is exposed only via methods on the four handle types (crate::DbRead / crate::DbWrite / crate::TxRead / crate::TxWrite) plus the parameter structs re-exported here.

Structsยง

InsertChainOp
Parameters for inserting a row into ChainOp.
InsertLimboChainOp
Parameters for inserting a row into LimboChainOp.
InsertLimboWarrant
Parameters for inserting a row into LimboWarrant.
InsertWarrant
Parameters for inserting a row into Warrant.