internal

package
v0.0.0-...-7a11031 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Db *gorm.DB
)

Functions

func ClearDb

func ClearDb()

func OpenDb

func OpenDb() error

func OpenDbForTests

func OpenDbForTests()

func RegisterJoinTables

func RegisterJoinTables(table_name ...string)

func RegisterModels

func RegisterModels(model ...interface{})

Types

type Base

type Base struct {
	ID        uint      `gorm:"primary_key" json:"id"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

the same as gorm.Model, but without the DeletedAt

Jump to

Keyboard shortcuts

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