database

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 16 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 SQLStore added in v0.8.5

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

func NewSQLStore added in v0.8.5

func NewSQLStore(gormDB *gorm.DB, secretKey string) *SQLStore

func (*SQLStore) BeginTx added in v0.8.5

func (tx *SQLStore) BeginTx(ctx context.Context, opts ...*sql.TxOptions) (*SQLStore, error)

func (*SQLStore) Commit added in v0.8.5

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

func (*SQLStore) DataStore added in v0.8.5

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

func (*SQLStore) FileStore added in v0.8.5

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

func (*SQLStore) InstanceStore added in v0.8.5

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

func (*SQLStore) Rollback added in v0.8.5

func (tx *SQLStore) Rollback() error

Jump to

Keyboard shortcuts

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