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
Click to show internal directories.
Click to hide internal directories.