memory

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: AGPL-3.0 Imports: 2 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) 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