Documentation ¶
Index ¶
- type DBInfo
- type MeteringDB
- type MeteringPg
- func (mpg MeteringPg) Close()
- func (mpg MeteringPg) Insert(ms metering.Statement) (mid int, err error)
- func (mpg MeteringPg) Query(projectID int, mType int, typeInfo string) (ms metering.Statement, err error)
- func (mpg MeteringPg) QueryAll(projectID int, mType int) (mss []metering.Statement, err error)
- type MeteringReadOnlyDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MeteringDB ¶
type MeteringDB interface { MeteringReadOnlyDB Insert(ms metering.Statement) (mid int, err error) }
type MeteringPg ¶
type MeteringPg struct {
DBInfo
}
func NewMeteringPg ¶
func NewMeteringPg(sqlxdb *sqlx.DB, tn string) MeteringPg
func (MeteringPg) Close ¶
func (mpg MeteringPg) Close()
Click to show internal directories.
Click to hide internal directories.