mysqlPack

package
v0.0.0-...-1c5fce0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UserName string
	Password string
	Host     string
	Port     string
	DBName   string
	Options  string
}

type Control

type Control interface {
	Ping() error

	Insert(sqlStr string, args ...interface{}) (int64, error)
	UpdateOrDelete(sqlStr string, args ...interface{}) (int64, error)
	Query(sqlStr string, args ...interface{}) (*[]map[string]string, error)
	QueryRow(sqlStr string, args ...interface{}) (*map[string]string, error)

	DBClose() error
}

func New

func New(cfg Config) (Control, error)

Jump to

Keyboard shortcuts

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