Skip to main content

Crate rostra_client_db

Crate rostra_client_db 

Source

Modules§

news
social

Macros§

define_extension_table
Defines a typed caller-owned extension table.

Structs§

CurrentState
A retained current-state subscription that returns owned snapshots.
CurrentStateClosed
Error returned after a current-state publisher closes.
Database
The authoritative event store and projection boundary for one local identity.
DbIdMismatchSnafu
SNAFU context selector for the DbError::DbIdMismatch variant
EventReceivedRecord
Information about when and how we received an event.
EventRecord
Record for the main events table.
EventsHeadsTableRecord
Marker record for the events_heads table.
ExtensionReadTransaction
Read-only access to trusted, caller-owned extension tables.
ExtensionTableDefinition
A typed definition for a caller-owned extension table.
ExtensionWriteTransaction
Mutable access to trusted, caller-owned extension tables.
IdSocialProfileRecord
User profile information extracted from SOCIAL_PROFILE_UPDATE events.
IdsDataUsageRecord
Aggregate data usage record for an identity.
IdsFolloweesRecord
Record for the ids_followees table.
IdsFollowersRecord
Record for the ids_followers table.
IrohNodeRecord
Information about an iroh network endpoint for an identity.
IrohNodeStats
Connection statistics for an iroh node endpoint.
Latest
Wrapper for values where only the latest version matters.
SelfFollowee
One active direct follow in a coherent current self-follow snapshot.
SocialNewsRankRecord
SocialPostMaterializationCursor
Opaque durable position in one database lineage’s SocialPost materialization feed.
SocialPostMaterializationPage
One bounded snapshot page from the ordinary SocialPost materialization feed.
SocialPostRecord
Aggregate metadata for a social post.
SocialPostScanPage
Results, honest work counters, and continuation from one read snapshot.
SocialPostScanRequest
Independent limits and early filters for one read snapshot.
SocialPostScanRow
A surviving locally retained post, without unbounded reply-count metadata.
SocialPostsReactionsRecord
Marker record for the social_posts_reactions index.
SocialPostsRepliesRecord
Marker record for the social_posts_replies index.
SocialVoteSumRecord
WotData
Web of Trust data - contains direct followees and extended followees.

Enums§

ContentWantState
DbError
EventContentResult
Result of looking up event content.
EventContentState
Per-event content processing state stored in events_content_state table.
EventReceivedSource
How we acquired an event.
InsertEventOutcome
ProcessEventState
SocialPostMaterialization
Current high-level state of one logged ordinary SocialPost materialization.
SocialPostScanStop
Why a bounded scan stopped.
TableDumpError

Constants§

EXTENSION_RESERVED_TABLE_PREFIXES
Built-in table-name prefixes unavailable to extension tables.
SOCIAL_POST_MATERIALIZATION_SCAN_MAX
Maximum number of materialization rows resolved by one scan.

Type Aliases§

ContentStoreRecordOwned
Owned record for the content_store table.
DbResult
SocialVoteScore
TableDumpResult