Documentation ¶
Index ¶
- func CloseConnection(c client.Client)
- func InfluxDbClient(host string, port int) client.Client
- func Query(c client.Client, queryString string) ([]client.Result, error, error)
- func Write(c client.Client)
- type MySQLClient
- func (c MySQLClient) Close()
- func (c MySQLClient) Delete(query string) error
- func (c MySQLClient) Insert(query string) (sql.Result, error)
- func (c MySQLClient) Ping() (bool, error)
- func (c MySQLClient) Query(query string, args ...interface{}) error
- func (c MySQLClient) Update(query string) (sql.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseConnection ¶
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) Ping ¶
func (c MySQLClient) Ping() (bool, error)
func (MySQLClient) Query ¶
func (c MySQLClient) Query(query string, args ...interface{}) error
Click to show internal directories.
Click to hide internal directories.