database

package
v0.0.0-...-a448e87 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnection

func NewConnection(conf *DatabaseConfig) (*gorm.DB, error)

NewConnection return new connection to database

Types

type DatabaseConfig

type DatabaseConfig struct {
	URL     string
	Dialect string
}

DatabaseConfig database connection

func NewDatabaseConfig

func NewDatabaseConfig() *DatabaseConfig

NewDatabaseConfig return new config for connect to database with cmd go run main.go or docker-compose

Jump to

Keyboard shortcuts

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