Versions in this module Expand all Collapse all v1 v1.3.1 Mar 2, 2022 v1.3.0 Mar 2, 2022 Changes in this version + const BoltBackendName + const DefaultBoltAutoCompactMinAge + const DefaultDBTimeout + const DefaultTempDBFileName — darwin/amd64, linux/amd64, windows/amd64 + const EtcdBackendName + const LastCompactionFileNameSuffix — darwin/amd64, linux/amd64, windows/amd64 + const PostgresBackend + const PostgresBackendName + const TestBackend + var Create = walletdb.Create + var ErrBucketExists = walletdb.ErrBucketExists + var ErrBucketNotFound = walletdb.ErrBucketNotFound + var ErrDatabaseNotOpen = walletdb.ErrDbNotOpen + var Open = walletdb.Open + func Batch(db Backend, f func(tx RwTx) error) error + func ForAll(b RBucket, cb func(k, v []byte) error) error + func LoggableKeyName(key []byte) string — darwin/amd64, linux/amd64, windows/amd64 + func NewBoltFixture(t *testing.T) *boltFixture + func NewPostgresFixture(dbName string) (postgres.Fixture, error) + func Prefetch(b RBucket, paths ...[]string) + func RunTests(m *testing.M) + func StartEmbeddedPostgres() (func() error, error) + func StartEtcdTestBackend(path string, clientPort, peerPort uint16, logFile string) (*etcd.Config, func(), error) + func Update(db Backend, f func(tx RwTx) error, reset func()) error + func UseLogger(logger btclog.Logger) + func View(db Backend, f func(tx RTx) error, reset func()) error + type Backend = walletdb.DB + func GetBoltBackend(cfg *BoltBackendConfig) (Backend, error) + func GetTestBackend(path, name string) (Backend, func(), error) + type BoltBackendConfig struct + AutoCompact bool + AutoCompactMinAge time.Duration + DBFileName string + DBPath string + DBTimeout time.Duration + NoFreelistSync bool + type BoltConfig struct + AutoCompact bool + AutoCompactMinAge time.Duration + DBTimeout time.Duration + NoFreelistSync bool + type Driver = walletdb.Driver + type ExtendedRBucket interface + ForAll func(func(k, v []byte) error) error + Prefetch func(paths ...[]string) + type ExtendedRTx interface + RootBucket func() RBucket + type KV struct + type RBucket = walletdb.ReadBucket + func RootBucket(t RTx) RBucket + type RCursor = walletdb.ReadCursor + type RTx = walletdb.ReadTx + type RwBucket = walletdb.ReadWriteBucket + type RwCursor = walletdb.ReadWriteCursor + type RwTx = walletdb.ReadWriteTx