storage

package
v0.0.0-...-a09fd22 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func func(tx Gorm) error

type Gorm

type Gorm struct {
	DB     *gorm.DB
	Scopes []Scope
}

func Open

func Open(uri string) (*Gorm, error)

func (Gorm) Close

func (g Gorm) Close() error

func (Gorm) DeleteIndex

func (g Gorm) DeleteIndex(i *model.Index) error

func (Gorm) DeleteOverlay

func (g Gorm) DeleteOverlay(n *model.Overlay) error

func (Gorm) ListIndexes

func (g Gorm) ListIndexes() (model.Indexes, error)

func (Gorm) ListOverlays

func (g Gorm) ListOverlays() (model.Overlays, error)

func (Gorm) ListSchemas

func (g Gorm) ListSchemas(o *model.Overlay, key string) (model.Schemas, error)

func (Gorm) ListValues

func (g Gorm) ListValues(o *model.Overlay, key string) (model.Values, error)

func (Gorm) Overlay

func (g Gorm) Overlay(overlay string) (*model.Overlay, error)

func (Gorm) Transaction

func (g Gorm) Transaction(fn Func) error

func (Gorm) UpsertIndex

func (g Gorm) UpsertIndex(i *model.Index) error

func (Gorm) UpsertOverlay

func (g Gorm) UpsertOverlay(n *model.Overlay) error

func (Gorm) UpsertSchemas

func (g Gorm) UpsertSchemas(s model.Schemas) error

func (Gorm) UpsertValues

func (g Gorm) UpsertValues(v model.Values) error

func (Gorm) WithDB

func (g Gorm) WithDB(db *gorm.DB) Gorm

func (Gorm) WithScopes

func (g Gorm) WithScopes(scopes ...Scope) Gorm

type Scope

type Scope func(tx Gorm) Gorm

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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