Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
Connect opens a database and verifies a connection to the database is alive, establishing a connection if necessary.
func IsDuplicate ¶
IsDuplicate extracts a unique_constraint_violation from a database error.
func IsPLv8Error ¶
IsPLv8Error extracts an error thrown by a PLv8 function.
func NewQueryBuilder ¶
func NewQueryBuilder() sq.StatementBuilderType
NewQueryBuilder creates a new squirrel query builder with dollar placeholders
Types ¶
type Point ¶
type Point struct {
X, Y float64
}
Point is the representation of postgres type 'point' (x,y)
func (*Point) Scan ¶
Scan implements sql.Scanner and sets the X/Y coordinates of the point with the given src
Click to show internal directories.
Click to hide internal directories.