datastore

package
v0.0.0-...-69125bf Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Postgres = "postgresql"
)

Variables

View Source
var (
	ErrUnknownDatabaseProvider = errors.New("Unknown database provider type")
)

Functions

func New

func New(dsn string) (*gorm.DB, error)

func NewPostgres

func NewPostgres(c PGConfig) (conn *gorm.DB, err error)

Types

type PGConfig

type PGConfig struct {
	Url         string
	MaxIdleConn int
	MaxOpenConn int
	LogMode     bool
}

Jump to

Keyboard shortcuts

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