database

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: MIT Imports: 8 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 ...

func NewDB

func NewDB(db *gorm.DB) *DB

NewDB ...

func NewDBWithString

func NewDBWithString(urlString string) *DB

NewDBWithString ...

func (*DB) AutoMigrate

func (db *DB) AutoMigrate(values ...interface{}) error

AutoMigrate ...

func (*DB) Client

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

Client ...

func (*DB) Close

func (db *DB) Close() error

Close ...

func (*DB) Ping added in v0.1.1

func (db *DB) Ping() error

Ping ...

Jump to

Keyboard shortcuts

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