inmemory

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorage

func NewStorage() (persistence.Storage, error)

NewStorage creates a new in-memory storage. For now this uses the gorm provider with the gorm.WithInMemory. In the future we want to supply our own independent implementation. It automatically sets the maximum concurrent connections to 1 because the in-memory sqlite driver has problems with more than concurrent connection (see https://github.com/mattn/go-sqlite3/issues/511).

Types

This section is empty.

Jump to

Keyboard shortcuts

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