db

package
v0.0.0-...-b7dcdf6 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

DB is the struct for a DB connection

func New

func New(conf config.DB, logger log.ILogger) (*DB, error)

New creates a new DB connection

func (*DB) AutoMigrateAll

func (db *DB) AutoMigrateAll()

func (*DB) DB

func (db *DB) DB() *gorm.DB

type IDB

type IDB interface {
	DB() *gorm.DB
}

IDB is the interface for a DB connection

Jump to

Keyboard shortcuts

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