Documentation
¶
Index ¶
- func NewFilterStore(chainID string, orm *DSORM, lggr logger.Logger) logpoller.FilterStore
- func NewLogStore(chainID string, orm *DSORM, lggr logger.Logger) logpoller.LogStore
- type DSORM
- func (o *DSORM) ChainID() string
- func (o *DSORM) NamedExecContext(ctx context.Context, query string, args any) (int64, error)
- func (o *DSORM) NamedGetContext(ctx context.Context, dest any, query string, arg any) error
- func (o *DSORM) NamedSelectContext(ctx context.Context, dest any, query string, arg any) error
- func (o *DSORM) Transact(ctx context.Context, fn func(*DSORM) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFilterStore ¶
Types ¶
type DSORM ¶
type DSORM struct {
// contains filtered or unexported fields
}
DSORM provides database operations for the TON log poller
func (*DSORM) NamedExecContext ¶
NamedExecContext executes a named query with struct/map arguments and returns rows affected
func (*DSORM) NamedGetContext ¶
NamedGetContext executes a named query and scans the result into dest (for single row queries)
func (*DSORM) NamedSelectContext ¶
NamedSelectContext executes a SELECT query with named parameters (for multiple rows)
Click to show internal directories.
Click to hide internal directories.