resAllocDB

package
v0.0.0-...-cee649a Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBInfo

type DBInfo struct {
	TheDB     *sqlx.DB
	TableName string
}

type ResAllocDB

type ResAllocDB interface {
	QueryByID(recordID int) (rar resAlloc.Record, err error)
	QueryByProjectID(projectID int) ([]resAlloc.Record, error)
	QueryAll() ([]resAlloc.Record, error)
	Insert(node resAlloc.Record) (err error)
	Close()
}

type ResAllocPg

type ResAllocPg struct {
	DBInfo
}

func NewResAllocPg

func NewResAllocPg(sqlxdb *sqlx.DB, tn string) ResAllocPg

func (ResAllocPg) Close

func (rnpg ResAllocPg) Close()

func (ResAllocPg) Insert

func (rnpg ResAllocPg) Insert(rar resAlloc.Record) (err error)

func (ResAllocPg) QueryAll

func (rnpg ResAllocPg) QueryAll() (rs []resAlloc.Record, err error)

func (ResAllocPg) QueryByID

func (rnpg ResAllocPg) QueryByID(recordID int) (ra resAlloc.Record, err error)

func (ResAllocPg) QueryByProjectID

func (rnpg ResAllocPg) QueryByProjectID(projectID int) (rs []resAlloc.Record, err error)

Jump to

Keyboard shortcuts

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