postgres

package
v0.0.0-...-23e57cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rollback

type Rollback struct {
	// contains filtered or unexported fields
}

func NewRollback

func NewRollback(db *bun.DB) (Rollback, error)

func (Rollback) Commit

func (r Rollback) Commit() error

func (Rollback) DeleteAll

func (r Rollback) DeleteAll(ctx context.Context, model any, level int64) (int, error)

func (Rollback) DeleteBigMapState

func (r Rollback) DeleteBigMapState(ctx context.Context, state bigmapdiff.BigMapState) error

func (Rollback) DeleteScriptsConstants

func (r Rollback) DeleteScriptsConstants(ctx context.Context, scriptIds []int64, constantsIds []int64) error

func (Rollback) DeleteTicketBalances

func (r Rollback) DeleteTicketBalances(ctx context.Context, ticketIds []int64) (err error)

func (Rollback) DeleteTickets

func (r Rollback) DeleteTickets(ctx context.Context, level int64) (ids []int64, err error)

func (Rollback) GetLastAction

func (r Rollback) GetLastAction(ctx context.Context, addressIds ...int64) (actions []models.LastAction, err error)

func (Rollback) GetMigrations

func (r Rollback) GetMigrations(ctx context.Context, level int64) (migrations []migration.Migration, err error)

func (Rollback) GetOperations

func (r Rollback) GetOperations(ctx context.Context, level int64) (ops []operation.Operation, err error)

func (Rollback) GetTicketUpdates

func (r Rollback) GetTicketUpdates(ctx context.Context, level int64) (updates []ticket.TicketUpdate, err error)

func (Rollback) GlobalConstants

func (r Rollback) GlobalConstants(ctx context.Context, level int64) (constants []contract.GlobalConstant, err error)

func (Rollback) LastDiff

func (r Rollback) LastDiff(ctx context.Context, ptr int64, keyHash string, skipRemoved bool) (diff bigmapdiff.BigMapDiff, err error)

func (Rollback) Protocols

func (r Rollback) Protocols(ctx context.Context, level int64) error

func (Rollback) Rollback

func (r Rollback) Rollback() error

func (Rollback) SaveBigMapState

func (r Rollback) SaveBigMapState(ctx context.Context, state bigmapdiff.BigMapState) error

func (Rollback) Scripts

func (r Rollback) Scripts(ctx context.Context, level int64) (scripts []contract.Script, err error)

func (Rollback) StatesChangedAtLevel

func (r Rollback) StatesChangedAtLevel(ctx context.Context, level int64) (states []bigmapdiff.BigMapState, err error)

func (Rollback) TicketBalances

func (r Rollback) TicketBalances(ctx context.Context, balances ...*ticket.Balance) error

func (Rollback) UpdateAccountStats

func (r Rollback) UpdateAccountStats(ctx context.Context, account account.Account) error

func (Rollback) UpdateStats

func (r Rollback) UpdateStats(ctx context.Context, stats stats.Stats) error

func (Rollback) UpdateTicket

func (r Rollback) UpdateTicket(ctx context.Context, ticket ticket.Ticket) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL