db

package
v0.0.0-...-e4becfe Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectionStringToGormString

func ConnectionStringToGormString(connectionString string) (adapter string, gormString string)

Convert Postgres connection string to Gorm string

func GetDatabase

func GetDatabase(connectionString string) (db *gorm.DB)

GetDatabase returns a database handler for a given type.

Types

type Manager

type Manager interface {
	Setup(connectionString string) *gorm.DB
}

Manager is an abstraction to get different DB implementations

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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