database

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Schema string

Functions

func NewMockGorm

func NewMockGorm() (*gorm.DB, error)

Types

type DB added in v0.8.1

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

func NewDB added in v0.8.1

func NewDB(gormDB *gorm.DB, secretKey string) *DB

func (*DB) BeginTx added in v0.8.1

func (tx *DB) BeginTx(ctx context.Context) (*DB, error)

func (*DB) Commit added in v0.8.1

func (tx *DB) Commit(ctx context.Context) error

func (*DB) DataStore added in v0.8.1

func (tx *DB) DataStore() datastore.Store

func (*DB) FileStore added in v0.8.1

func (tx *DB) FileStore() filestore.FileStore

func (*DB) InstanceStore added in v0.8.1

func (tx *DB) InstanceStore() instancestore.Store

func (*DB) Rollback added in v0.8.1

func (tx *DB) Rollback() error

Jump to

Keyboard shortcuts

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