database

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValueToInterface

func ValueToInterface(v reflect.Value) interface{}

Types

type Database

type Database struct {
	GormDB *gorm.DB

	Driver string
	// contains filtered or unexported fields
}

func Open

func Open(driver string, dsn string) (*Database, error)

func (*Database) AutoMigrate

func (d *Database) AutoMigrate(dst ...interface{}) error

func (*Database) ChunkedCreate

func (d *Database) ChunkedCreate(value interface{})

func (*Database) Delete

func (d *Database) Delete(dst ...interface{})

func (*Database) InsertOne

func (d *Database) InsertOne(value interface{})

func (*Database) Where

func (d *Database) Where(key string, value string) *Database

Jump to

Keyboard shortcuts

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