mysql

package
v0.0.0-...-443ed56 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 5 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 NewMySQL

func NewMySQL(username string, password string, host string, port uint, dbName string) *MySQL

func (*MySQL) Close

func (m *MySQL) Close() error

func (*MySQL) Connect

func (m *MySQL) Connect() error

func (*MySQL) ExecuteQuery

func (p *MySQL) ExecuteQuery(query string) error

func (*MySQL) FetchAllRows

func (m *MySQL) FetchAllRows(tableName string) ([]map[string]interface{}, error)

func (*MySQL) FetchTables

func (m *MySQL) FetchTables(dumpTables []string, excludeTables []string) ([]string, error)

func (*MySQL) GetURI

func (m *MySQL) GetURI() string

func (*MySQL) Ping

func (m *MySQL) Ping() error

Jump to

Keyboard shortcuts

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