mysql

package
v0.0.0-...-9a3fa0c Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQL

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

func New

func New(cfg *config.Resource) (*MySQL, error)

func (*MySQL) Delete

func (d *MySQL) Delete(tableName string, condition map[string]string) (int, error)

func (*MySQL) Insert

func (d *MySQL) Insert(tableName string, rows []map[string]string) error

func (*MySQL) Ready

func (d *MySQL) Ready() error

func (*MySQL) Reset

func (d *MySQL) Reset() error

func (*MySQL) Select

func (d *MySQL) Select(tableName string, condition map[string]string) ([]map[string]string, error)

Jump to

Keyboard shortcuts

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