Discover Packages
github.com/machine-w/tdengine-go-driver-restful
taosSqlRestful
package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Feb 22, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 18
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func MakeConn() (conn *taosConn)
MakeConn make conn
NullTime represents a time.Time that may be NULL.
NullTime implements the Scanner interface so
it can be used as a scan destination:
var nt NullTime
err := db.QueryRow("SELECT time FROM foo WHERE id=?", id).Scan(&nt)
...
if nt.Valid {
// use nt.Time
} else {
// NULL value
}
This NullTime implementation is not driver-specific
Scan implements the Scanner interface.
The value type must be time.Time or string / []byte (formatted time-string),
otherwise Scan fails.
Value implements the driver Valuer interface.
type TaosResq struct {
Status string `json:"status"`
Head []string `json:"head"`
Data [][]interface{} `json:"data"`
Rows int `json:"rows"`
Code int `json:"code"`
Desc string `json:"desc"`
}
TaosResq is
Source Files
¶
Click to show internal directories.
Click to hide internal directories.