memory

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

type Memory struct {
	sync.RWMutex

	DB *memdb.MemDB
}

Memory - Structure for in memory db

func New

func New(schema *memdb.DBSchema) (*Memory, error)

New - Creates new database schema in memory

func (*Memory) Close

func (m *Memory) Close() error

Close - Closing the in memory instance

func (*Memory) GetEngineType

func (m *Memory) GetEngineType() string

GetEngineType - Gets engine type, returns as string

func (*Memory) IsReady

func (m *Memory) IsReady(ctx context.Context) (bool, error)

IsReady - Check in memory db is ready

func (*Memory) Migrate

func (m *Memory) Migrate(statements []string) (err error)

Migrate - In memory migration, nil

Jump to

Keyboard shortcuts

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