db

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 10 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBHandle

type DBHandle struct {
	*gorm.DB
	// contains filtered or unexported fields
}

func GetConfiguredDatabase

func GetConfiguredDatabase(c *config.Configurator) (*DBHandle, error)

func NewDBHandle added in v1.0.4

func NewDBHandle(dialect string, args ...interface{}) (*DBHandle, error)

func (*DBHandle) DateFromUsecTimestamp

func (h *DBHandle) DateFromUsecTimestamp(fieldName string) string

Jump to

Keyboard shortcuts

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