Documentation ¶
Index ¶
- Variables
- func UpdateContinuousAggregateDataFromHighWaterMark(ctx context.Context, conn *pgxpool.Pool, toHeight int64) error
- type Config
- type ContinuousAggregateMetaData
- type DatabaseMetadata
- type HistoryStore
- type HypertablePartitionColumns
- type IndexInfo
- type LoadLog
- type LoadResult
- type Service
- func (b *Service) CreateSnapshot(ctx context.Context, chainID string, toHeight int64) (segment.Unpublished, error)
- func (b *Service) CreateSnapshotAsynchronously(ctx context.Context, chainID string, toHeight int64) (segment.Unpublished, error)
- func (b *Service) GetUnpublishedSnapshots() ([]segment.Unpublished, error)
- func (b *Service) LoadSnapshotData(ctx context.Context, log LoadLog, ch segment.ContiguousHistory[segment.Full], ...) (LoadResult, error)
- func (b *Service) RollbackToSegment(ctx context.Context, log LoadLog, rollbackToSegment segment.Full) error
- func (b *Service) SnapshotData(ctx context.Context, chainID string, toHeight int64) error
- type Span
- type TableCopySql
- type TableMetadata
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSnapshotExists = errors.New("snapshot exists") ErrNoLastSnapshot = errors.New("no last snapshot") )
Functions ¶
Types ¶
type Config ¶
type Config struct {
WaitForCreationLockTimeout encoding.Duration `` /* 140-byte string literal not displayed */
}
func NewDefaultConfig ¶
func NewDefaultConfig() Config
NewDefaultConfig creates an instance of the package specific configuration, given a pointer to a logger instance to be used for logging within the package.
type ContinuousAggregateMetaData ¶ added in v0.71.0
type DatabaseMetadata ¶
type DatabaseMetadata struct { TableNameToMetaData map[string]TableMetadata ContinuousAggregatesMetaData []ContinuousAggregateMetaData DatabaseVersion int64 CurrentStateTablesCreateConstraintsSql []string CurrentStateTablesDropConstraintsSql []string HistoryStateTablesCreateConstraintsSql []string HistoryStateTablesDropConstraintsSql []string AllTablesEnableAutoVacuumSql []string AllTablesDisableAutoVacuumSql []string }
func NewDatabaseMetaData ¶
func (DatabaseMetadata) GetHistoryTableNames ¶
func (d DatabaseMetadata) GetHistoryTableNames() []string
type HistoryStore ¶ added in v0.73.0
type LoadResult ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewSnapshotService ¶
func (*Service) CreateSnapshot ¶
func (*Service) CreateSnapshotAsynchronously ¶
func (*Service) GetUnpublishedSnapshots ¶ added in v0.71.0
func (b *Service) GetUnpublishedSnapshots() ([]segment.Unpublished, error)
func (*Service) LoadSnapshotData ¶ added in v0.68.0
func (b *Service) LoadSnapshotData( ctx context.Context, log LoadLog, ch segment.ContiguousHistory[segment.Full], connConfig sqlstore.ConnectionConfig, optimiseForAppend, verbose bool, ) (LoadResult, error)
func (*Service) RollbackToSegment ¶ added in v0.71.0
type TableCopySql ¶ added in v0.70.0
type TableCopySql struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.