sql

package
v1.0.163 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sensor

type Sensor struct {
	sensors.UnimplementedSensor
	Con *sql.Conn

	// DatabaseConnectionName is used to dial database
	DatabaseConnectionName string `yaml:"database_connection_name"`
	// Query is send to remote database in order to receive data from it
	Query string `yaml:"query"`
}

func (*Sensor) Close

func (s *Sensor) Close(ctx context.Context) error

func (*Sensor) Init

func (s *Sensor) Init(ctx context.Context) error

func (*Sensor) Ping

func (s *Sensor) Ping(ctx context.Context) error

func (*Sensor) Update

func (s *Sensor) Update(ctx context.Context) (err error)

Jump to

Keyboard shortcuts

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