mysql

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ER_DUP_ENTRY                 = 1062
	ER_OPTION_PREVENTS_STATEMENT = 1290
)

MySQL error codes

Variables

This section is empty.

Functions

func Error

func Error(err error, msg string) error

Map MySQL error to shared app error and return, if any, because db handler callers don't know or care about the underlying database.

func ErrorCode

func ErrorCode(err error) uint16

Types

type Manager

type Manager struct {
	*sync.RWMutex
	// contains filtered or unexported fields
}

func NewManager

func NewManager() *Manager

func (*Manager) Close

func (m *Manager) Close() error

func (*Manager) DB

func (m *Manager) DB() *sql.DB

func (*Manager) Open

func (m *Manager) Open() error

Jump to

Keyboard shortcuts

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