mysql

package
v0.0.0-...-22940ab Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseMysqlDB

func CloseMysqlDB()

func CreateDeviceEventTable

func CreateDeviceEventTable(table string) error

创建事件表

func CreateDeviceTable

func CreateDeviceTable() error

创建设备表

func FindDevice

func FindDevice() []string

查询设备

func FindDeviceEvent

func FindDeviceEvent(id string) [][]string

查询历史记录

func InitMysqlDB

func InitMysqlDB() error

InitMysqlDB .

func InsertDevice

func InsertDevice(id string, ts string) error

插入设备

func InsertDeviceEvent

func InsertDeviceEvent(id string, sequence int, datas string, ts string) error

插入设备事件

Types

This section is empty.

Jump to

Keyboard shortcuts

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