Documentation ¶
Index ¶
- type Postgres
- func (db *Postgres) Close() (err error)
- func (db *Postgres) GetByID(table string, ID interface{}) (*sql.Row, error)
- func (db *Postgres) GetLimited(table string, limit uint64) (*sql.Rows, error)
- func (db *Postgres) GetLimitedAfterID(table string, after, limit uint64) (*sql.Rows, error)
- func (db *Postgres) GetLimitedBeforeID(table string, before, limit uint64) (*sql.Rows, error)
- func (db *Postgres) Insert(table string, columns []string, values []interface{}) (last uint64, err error)
- func (db *Postgres) LastID(table string) (id uint64, err error)
- func (db *Postgres) Update(table string, columns []string, values []interface{}) (count uint64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
Postgres driver
func (*Postgres) GetLimited ¶
GetLimited implements interface for getting last limited table rows by ID
func (*Postgres) GetLimitedAfterID ¶
GetLimitedAfterID implements interface for getting limited table rows after specified ID
func (*Postgres) GetLimitedBeforeID ¶
GetLimitedBeforeID implements interface for getting limited table rows before specified ID
func (*Postgres) Insert ¶
func (db *Postgres) Insert(table string, columns []string, values []interface{}) (last uint64, err error)
Insert implements interface for inserting table rows
Click to show internal directories.
Click to hide internal directories.