dbl

package
v0.0.0-...-c6554db Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinDao

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

func (*BinDao) Delete

func (d *BinDao) Delete(bin *ds.Bin) error

func (*BinDao) GetAll

func (d *BinDao) GetAll() ([]ds.Bin, error)

func (*BinDao) GetByBid

func (d *BinDao) GetByBid(bid string) (ds.Bin, error)

func (*BinDao) GetById

func (d *BinDao) GetById(id int) (ds.Bin, error)

func (*BinDao) Insert

func (d *BinDao) Insert(bin *ds.Bin) error

func (*BinDao) Update

func (d *BinDao) Update(bin *ds.Bin) error

type DAO

type DAO struct {
	ConnStr string
	// contains filtered or unexported fields
}

func Init

func Init(dbHost string, dbPort int, dbName, dbUser, dbPassword string) (DAO, error)

Init a database connection given a database name and user.

func (DAO) Bin

func (dao DAO) Bin() *BinDao

func (DAO) Close

func (dao DAO) Close() error

func (DAO) CreateSchema

func (dao DAO) CreateSchema() error

func (DAO) File

func (dao DAO) File() *FileDao

func (DAO) ResetDB

func (dao DAO) ResetDB() error

Jump to

Keyboard shortcuts

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