Documentation ¶
Overview ¶
* @Author: lisheng * @Date: 2022-11-23 14:06:29 * @LastEditTime: 2023-02-10 22:29:56 * @LastEditors: lisheng * @Description: * @FilePath: /jf-go-kit/database/tdengine/record.go
* @Author: lisheng * @Date: 2022-10-13 14:12:44 * @LastEditTime: 2023-01-09 15:31:10 * @LastEditors: lisheng * @Description: Tdengine驱动 * @FilePath: /jf-go-kit/database/tdengine/tdengine.go
Index ¶
- func CreateDBEngnine(user, pwd, addr string, port int) (*zorm.DBDao, *context.Context)
- func DBKeepAlive()
- func InitTdClient() func() error
- func RestDeleteRecordPtr(engineName, exeSql string, objPtr interface{}) error
- func RestFindRecordsMap(engineName, exeSql string) ([]map[string]interface{}, error)
- func RestFindRecordsPtr(engineName, exeSql string, objPtr interface{}) error
- func RestFindSingeRecordMap(engineName, exeSql string) (map[string]interface{}, error)
- func RestInsertRecordPtr(engineName, exeSql string, objPtr interface{})
- func RestUpdateRecordPtr(engineName, exeSql string, objPtr interface{}) error
- type TDengineManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDBEngnine ¶
func RestDeleteRecordPtr ¶
*
- @description: D - 更新数据
- @param {string} exeSql
- @param {interface{}} objPtr
- @return {*}
- @author: liqiyuWorks
func RestFindRecordsMap ¶ added in v0.0.34
*
- @description: RestFindRecordsMap
- @param {*} engineName
- @param {string} exeSql
- @return {*} 返回map
- @author: liqiyuWorks
func RestFindRecordsPtr ¶
*
- @description: RestFindRecordsPtr
- @param {*} engineName
- @param {string} exeSql
- @param {interface{}} objPtr
- @return {*}
- @author: liqiyuWorks
func RestFindSingeRecordMap ¶ added in v0.0.35
func RestInsertRecordPtr ¶
func RestInsertRecordPtr(engineName, exeSql string, objPtr interface{})
*
- @description: C - 插入数据
- @param {string} exeSql
- @param {interface{}} objPtr
- @return {*}
- @author: liqiyuWorks
func RestUpdateRecordPtr ¶
*
- @description: U - 更新数据
- @param {string} exeSql
- @param {interface{}} objPtr
- @return {*}
- @author: liqiyuWorks
Types ¶
type TDengineManager ¶
var (
GTDengineManager *TDengineManager = new(TDengineManager)
)
Click to show internal directories.
Click to hide internal directories.