databases

package
v0.0.0-...-c685a14 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseConnection

func CloseConnection(c client.Client)

func InfluxDbClient

func InfluxDbClient(host string, port int) client.Client

func Query

func Query(c client.Client, queryString string) ([]client.Result, error, error)

func Write

func Write(c client.Client)

Types

type MySQLClient

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

func SqlConnect

func SqlConnect(dsn string) *MySQLClient

"user:password@tcp(127.0.0.1:3306)/hello"

func (MySQLClient) Close

func (c MySQLClient) Close()

func (MySQLClient) Delete

func (c MySQLClient) Delete(query string) error

func (MySQLClient) Insert

func (c MySQLClient) Insert(query string) (sql.Result, error)

func (MySQLClient) Ping

func (c MySQLClient) Ping() (bool, error)

func (MySQLClient) Query

func (c MySQLClient) Query(query string, args ...interface{}) error

func (MySQLClient) Update

func (c MySQLClient) Update(query string) (sql.Result, error)

Jump to

Keyboard shortcuts

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