tdengine

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

* @Author: lisheng * @Date: 2022-10-13 14:12:44 * @LastEditTime: 2022-11-04 23:09:02 * @LastEditors: lisheng * @Description: Tdengine驱动 * @FilePath: /gitee.com/liqiyuworks/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

func DBKeepAlive

func DBKeepAlive()

*

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

func InitTdClient

func InitTdClient() func() error

初始化连接

func RestDeleteRecordPtr

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

*

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

func RestFindRecordsPtr

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

*

  • @description: R - TD查询返回数组结构体
  • @param {string} exeSql
  • @param {interface{}} objPtr
  • @return {*}
  • @author: liqiyuWorks

func RestInsertRecordPtr

func RestInsertRecordPtr(exeSql string, objPtr interface{})

*

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

func RestUpdateRecordPtr

func RestUpdateRecordPtr(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
}
var (
	GTDengineManager *TDengineManager = new(TDengineManager)
)

Jump to

Keyboard shortcuts

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