sql

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SqlStore

type SqlStore struct {
}

func (*SqlStore) ChangeGlobalStatus

func (s *SqlStore) ChangeGlobalStatus(global *storage.TransGlobalStore, newStatus string, updates []string, finished bool)

func (*SqlStore) FindBranches

func (s *SqlStore) FindBranches(gid string) []storage.TransBranchStore

func (*SqlStore) FindTransGlobalStore

func (s *SqlStore) FindTransGlobalStore(gid string) *storage.TransGlobalStore

func (*SqlStore) LockGlobalSaveBranches

func (s *SqlStore) LockGlobalSaveBranches(gid string, status string, branches []storage.TransBranchStore, branchStart int)

func (*SqlStore) LockOneGlobalTrans

func (s *SqlStore) LockOneGlobalTrans(expireIn time.Duration) *storage.TransGlobalStore

func (*SqlStore) MaySaveNewTrans

func (s *SqlStore) MaySaveNewTrans(global *storage.TransGlobalStore, branches []storage.TransBranchStore) error

func (*SqlStore) Ping

func (s *SqlStore) Ping() error

func (*SqlStore) PopulateData

func (s *SqlStore) PopulateData(skipDrop bool)

func (*SqlStore) ScanTransGlobalStores

func (s *SqlStore) ScanTransGlobalStores(position *string, limit int64) []storage.TransGlobalStore

func (*SqlStore) TouchCronTime

func (s *SqlStore) TouchCronTime(global *storage.TransGlobalStore, nextCronInterval int64)

func (*SqlStore) UpdateBranchesSql

func (s *SqlStore) UpdateBranchesSql(branches []storage.TransBranchStore, updates []string) *gorm.DB

Jump to

Keyboard shortcuts

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