Documentation ¶
Index ¶
- type DBInfo
- type ResAllocDB
- type ResAllocPg
- func (rnpg ResAllocPg) Close()
- func (rnpg ResAllocPg) Insert(rar resAlloc.Record) (err error)
- func (rnpg ResAllocPg) QueryAll() (rs []resAlloc.Record, err error)
- func (rnpg ResAllocPg) QueryByID(recordID int) (ra resAlloc.Record, err error)
- func (rnpg ResAllocPg) QueryByProjectID(projectID int) (rs []resAlloc.Record, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResAllocDB ¶
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) 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)
Click to show internal directories.
Click to hide internal directories.