Documentation ¶
Index ¶
- func CreateNotCheckedSQL(boolColumns []string, recheckHeaders constants.TransformerExecution) string
- func GetCheckedColumnNames(db *postgres.DB) ([]string, error)
- func MarkHeaderChecked(headerID int64, db *postgres.DB, checkedHeadersColumn string) error
- func MarkHeaderCheckedInTransaction(headerID int64, tx *sqlx.Tx, checkedHeadersColumn string) error
- func MissingHeaders(startingBlockNumber, endingBlockNumber int64, db *postgres.DB, ...) ([]core.Header, error)
- func RecheckHeaders(startingBlockNumber, endingBlockNumber int64, db *postgres.DB, ...) ([]core.Header, error)
- type StorageRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNotCheckedSQL ¶
func CreateNotCheckedSQL(boolColumns []string, recheckHeaders constants.TransformerExecution) string
Builds a SQL string that checks if any column value is 0, given the column names. Defaults to FALSE when no columns are provided. Ex: ["columnA", "columnB"] => "NOT (columnA!=0 AND columnB!=0)"
[] => "FALSE"
func MarkHeaderChecked ¶
Types ¶
type StorageRepository ¶
Click to show internal directories.
Click to hide internal directories.