tdengine

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

* @Author: lisheng * @Date: 2022-11-23 14:06:29 * @LastEditTime: 2023-01-11 13:12:48 * @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

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDBEngnine

func CreateDBEngnine(user, pwd, addr string, port int) (*zorm.DBDao, *context.Context)

func DBKeepAlive

func DBKeepAlive()

*

  • @description: 心跳监测
  • @return {*}
  • @author: liqiyuWorks

func InitTdClient

func InitTdClient() func() error

初始化连接

func RestDeleteRecordPtr

func RestDeleteRecordPtr(engineName, exeSql string, objPtr interface{}) error

*

  • @description: D - 更新数据
  • @param {string} exeSql
  • @param {interface{}} objPtr
  • @return {*}
  • @author: liqiyuWorks

func RestFindRecordsMap added in v0.0.34

func RestFindRecordsMap(engineName, exeSql string) ([]map[string]interface{}, error)

*

  • @description: RestFindRecordsMap
  • @param {*} engineName
  • @param {string} exeSql
  • @return {*} 返回map
  • @author: liqiyuWorks

func RestFindRecordsPtr

func RestFindRecordsPtr(engineName, exeSql string, objPtr interface{}) error

*

  • @description: RestFindRecordsPtr
  • @param {*} engineName
  • @param {string} exeSql
  • @param {interface{}} objPtr
  • @return {*}
  • @author: liqiyuWorks

func RestFindSingeRecordMap added in v0.0.35

func RestFindSingeRecordMap(engineName, exeSql string) (map[string]interface{}, error)

func RestInsertRecordPtr

func RestInsertRecordPtr(engineName, exeSql string, objPtr interface{})

*

  • @description: C - 插入数据
  • @param {string} exeSql
  • @param {interface{}} objPtr
  • @return {*}
  • @author: liqiyuWorks

func RestUpdateRecordPtr

func RestUpdateRecordPtr(engineName, exeSql string, objPtr interface{}) error

*

  • @description: U - 更新数据
  • @param {string} exeSql
  • @param {interface{}} objPtr
  • @return {*}
  • @author: liqiyuWorks

Types

type TDengineManager

type TDengineManager struct {
	EngineMap map[string]*zorm.DBDao
	CtxMap    map[string]*context.Context
}
var (
	GTDengineManager *TDengineManager = new(TDengineManager)
)

Jump to

Keyboard shortcuts

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