mysql

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	// contains filtered or unexported fields
}

func NewWithDSN

func NewWithDSN(dsn string, tries uint) (*Connection, error)

func (*Connection) Close

func (c *Connection) Close()

func (*Connection) Connect

func (c *Connection) Connect(tries uint) error

func (*Connection) DB

func (c *Connection) DB() *sql.DB

func (*Connection) DSN

func (c *Connection) DSN() string

type Connector

type Connector interface {
	DB() *sql.DB
	DSN() string
	Connect(tries uint) error
	Close()
}

Jump to

Keyboard shortcuts

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