Documentation ¶
Index ¶
Constants ¶
View Source
const MaxPostgresNameLength = 64
MaxPostgresNameLength limits the size of the application name
Variables ¶
View Source
var ErrNameTooLong = errors.New("name exceeds maximum length for postgres application names")
ErrNameTooLong indicates when app name is too long
Functions ¶
func ConnectDatabase ¶
ConnectDatabase accepts a connection url and application name along with a context.Context which is respected during connection and ping. A *pg.DB is returned suitable for use with chainviz.Query.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.