sql

package
v0.0.0-...-c6b0ce7 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: GPL-3.0 Imports: 7 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 {
	*gorm.DB
}

func New

func New(dbpath string) (*DB, error)

func (*DB) AutoMigrateAll

func (db *DB) AutoMigrateAll() error

func (*DB) Close

func (db *DB) Close() error

func (*DB) CreateSuper

func (db *DB) CreateSuper(super model.Super) (model.Super, error)

func (*DB) DeleteByID

func (db *DB) DeleteByID(id string) error

func (*DB) FindByID

func (db *DB) FindByID(id string) (model.Super, error)

func (*DB) FindByName

func (db *DB) FindByName(name string) (model.Super, error)

func (*DB) ListAllBad

func (db *DB) ListAllBad() ([]model.Super, error)

func (*DB) ListAllGood

func (db *DB) ListAllGood() ([]model.Super, error)

func (*DB) ListAllSuper

func (db *DB) ListAllSuper() ([]model.Super, error)

func (*DB) Seed

func (db *DB) Seed() error

Jump to

Keyboard shortcuts

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