db

package
v0.0.0-...-8d9ef14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPGXPool

func GetPGXPool(maxConns int) (*pgx.ConnPool, error)

OtherStatements is part of que library which prepare all SQL statements related to managing jobs for performance List of it can be found here: https://github.com/bgentry/que-go/blob/04623be4201ec7abb8d6cd0f172a4c612e216cc4/que.go#L285

Types

type DBInitter

type DBInitter struct {
	InitSQL            string
	PreparedStatements map[string]string
	OtherStatements    func(*pgx.Conn) error
	// contains filtered or unexported fields
}

func (*DBInitter) AfterConnect

func (dbi *DBInitter) AfterConnect(c *pgx.Conn) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL