Bedrock.Internal.Repo (bedrock v0.6.0)
View SourceSummary
Functions
Create a lazy stream for a range query.
Executes a function within a transaction context with automatic retry logic.
Types
Functions
Create a lazy stream for a range query.
Options
:batch_size- Number of items to fetch per batch (default: 100):timeout- Timeout per batch request (default: 5000):limit- Maximum total items to return
@spec get_range( module(), start_key :: key(), end_key :: key(), opts :: [ batch_size: pos_integer(), timeout: pos_integer(), limit: pos_integer(), mode: :individual | :batch, snapshot: boolean() ] ) :: Enumerable.t({any(), any()})
@spec select(module(), Bedrock.KeySelector.t()) :: nil | {resolved_key :: key(), value()}
@spec select(module(), Bedrock.KeySelector.t(), opts :: keyword()) :: nil | {resolved_key :: key(), value()}
@spec transact( cluster :: module(), repo :: module(), (-> result) | (module() -> result), opts :: keyword() ) :: result when result: any()
Executes a function within a transaction context with automatic retry logic.
Options
:retry_limit- Maximum number of retry attempts (default: unlimited):timeout_in_ms- End-to-end transaction timeout, including retries (default: 5000; use:infinityto disable):transaction_system_layout- Use a specific TSL instead of fetching from coordinator