database

package
v0.0.0-...-483e734 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBManager

type DBManager struct {
	*pg.DB
}

func NewDBManager

func NewDBManager(options *pg.Options) *DBManager

func (*DBManager) CreateSchema

func (dbm *DBManager) CreateSchema(model interface{}) error

CreateSchema creates the table for the struct provided if it doesn't exist already

Jump to

Keyboard shortcuts

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