db

package
v0.0.0-...-9d12082 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoMigrate

func AutoMigrate() *gorm.DB

AutoMigrate is used to auto migrate new scheme to the database using gorm

func Close

func Close()

Close is used to close the database connection

func DestructiveReset

func DestructiveReset() *gorm.DB

DestructiveReset is used to delete all data and table on the database

func Init

func Init()

Init is used to init the connection to the database

func LogMode

func LogMode(enable bool) *gorm.DB

LogMode is used to enable/disable the SQL Command on the stdout

func Migrate

func Migrate()

Migrate is used to migrate database using go-migrate

func Relation

func Relation()

func Session

func Session() *gorm.DB

Session is used to get the database connection session

Types

type PasswordReset

type PasswordReset = model.PasswordReset

type User

type User = model.User

Jump to

Keyboard shortcuts

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