storage

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	*pop.Connection
}

Connection is the interface a storage provider must implement.

func Dial

func Dial(config *conf.GlobalConfiguration) (*Connection, error)

Dial will connect to that storage engine

func (*Connection) Transaction

func (c *Connection) Transaction(fn func(*Connection) error) error

Transaction creates a new tx

func (*Connection) UpdateOnly

func (conn *Connection) UpdateOnly(model interface{}, includeColumns ...string) error

UpdateOnly updates only the given columns (includeColumns) and excludes all other

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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