db

package
v0.0.0-...-e75809f Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: GPL-3.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFromContext

func GetFromContext(c *gin.Context) (*gorm.DB, error)

GetFromContext Get DB from Gin Context

func Initialize

func Initialize(config *config.Config) *gorm.DB

Initialize GORM DB instance

func Migrate

func Migrate(config *config.Config, db *gorm.DB) error

Migrate to latest version

Types

This section is empty.

Directories

Path Synopsis
base
models

Jump to

Keyboard shortcuts

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