# Packages
No description provided by the author
# Functions
Batch is an iterator for batches of records.
No description provided by the author
DefaultQueryCtx returns a context with a sensible sanity limit timeout for SQL queries.
DefaultQueryCtxWithParent returns a context with a sensible sanity limit timeout for SQL queries with the given parent context.
GetTxFromContext extracts the tx from the context.
DEPRECATED: Use the transaction manager instead.
DEPRECATED: Use the transaction manager instead.
WARNING: Only use for nested txes inside ORM methods where you expect db to already have a ctx with a deadline.
InjectTxIntoContext injects the tx into the context.
No description provided by the author
No description provided by the author
MustSQLDB panics if there is an error getting the underlying SQL TX.
No description provided by the author
No description provided by the author
No description provided by the author
NewLock returns a Lock with *sql.Conn.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TxFromContext extracts the tx from the context.
No description provided by the author
No description provided by the author
No description provided by the author
WithTxOptions returns a TransactionOption which sets the sql.TxOptions on the transaction.
No description provided by the author
# Constants
BatchSize is the default number of DB records to access in one batch.
Postgres channel to listen for new eth_txes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IdleInTxSessionTimeout controls the max time we leave a transaction open and idle.
LockTimeout controls the max time we will wait for any kind of database lock.
# Variables
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
Lock implements the Locker interface.
NullEventBroadcaster implements null pattern for event broadcaster.
No description provided by the author
# Interfaces
EventBroadcaster opaquely manages a collection of Postgres event listeners and broadcasts events to subscribers (with an optional payload filter).
Locker is an interface for postgresql advisory locks.
No description provided by the author
Subscription represents a subscription to a Postgres event channel.
No description provided by the author
# Type aliases
BatchFunc is the function to execute on each batch of records, should return the count of records affected.
TransactionManagerOption configures how we set up the transaction.
A TxFn is a function that will be called with a context which has a transaction injected as a value.