Documentation ¶
Index ¶
Constants ¶
View Source
const SQLMigrationsDir = "migrations"
Variables ¶
View Source
var ( ErrTxNotFound = errors.New("transaction not found") ErrMultipleTxFound = errors.New("multiple transactions found") )
View Source
var EmbedMigrations embed.FS
Functions ¶
func DropAllTablesAndViews ¶ added in v0.58.0
Types ¶
type Config ¶
type Config struct { Postgres config.PostgresConnection `group:"database" namespace:"postgres"` MigrateData bool `` /* 144-byte string literal not displayed */ MigrateBlockDuration time.Duration `` /* 144-byte string literal not displayed */ MigratePauseInterval time.Duration `` /* 144-byte string literal not displayed */ }
func NewDefaultConfig ¶
func NewDefaultConfig() Config
type Migrator ¶ added in v0.74.0
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a data migration agent that will migrate tx_results data that is required for providing data for the block explorer APIs. The tx_results table is populated by Tendermint and the number of records can be very large. This causes data migration difficult when there is a need to add additional information to tx_results in order to fulfill requirements for the block explorer APIs. The migration agent will allow migrations to run in the background without blocking upgrades with slow database migration scripts.
func NewMigrator ¶ added in v0.74.0
NewMigrator creates a new data migration agent.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) GetTransaction ¶ added in v0.58.0
func (*Store) ListTransactions ¶
Click to show internal directories.
Click to hide internal directories.