Documentation ¶
Index ¶
- Constants
- func ErrIsDuplicateKey(err error) bool
- func NilifyErrDuplicateKey(err error) error
- func SelectArrayAny(db *pg.DB, table, arrayCol, arrayVar string, res interface{}) error
- func SelectTagHistogramResults(db *pg.DB, table, tags, tag string, res interface{}) error
- func TagHistogramSQL(table, tags, tag string) string
- type PgConn
- type TagInfo
Constants ¶
View Source
const DuplicateKeyErrorPrefix = "ERROR #23505 duplicate key value violates unique constraint"
Variables ¶
This section is empty.
Functions ¶
func ErrIsDuplicateKey ¶
func NilifyErrDuplicateKey ¶
func SelectArrayAny ¶
func TagHistogramSQL ¶
Types ¶
type PgConn ¶
type PgConn struct { Host string Port string Addr string `josn:"Addr,omitempty"` User string `json:"User,omitempty"` Password string `json:"Password,omitempty"` Database string `json:"Database,omitempty"` SSLMode string `json:"sslmode,omitempty"` }
func NewPgConnJSON ¶
func (*PgConn) GoPgOptions ¶
Click to show internal directories.
Click to hide internal directories.