db

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InfluxDateLayout = "2006-01-02T15:04:05Z"
View Source
var SqliteDateLayout = "2006-01-02T15:04:05-0700"

Functions

This section is empty.

Types

type Influx

type Influx struct {
	ServerURL string
	Org       string
	Bucket    string
	Client    influxdb2.Client
	Write     api.WriteAPIBlocking
	Query     api.QueryAPI
}

func NewInflux

func NewInflux(serverURL string, org string, bucket string) *Influx

func (*Influx) Close

func (i *Influx) Close()

func (*Influx) Create

func (i *Influx) Create() error

type Sqlite

type Sqlite struct {
	// contains filtered or unexported fields
}

func NewSqlite

func NewSqlite() *Sqlite

func (*Sqlite) Close

func (s *Sqlite) Close()

func (*Sqlite) Create

func (s *Sqlite) Create() error

func (*Sqlite) Prepare

func (s *Sqlite) Prepare(queryStmt string) (*sql.Stmt, error)

Jump to

Keyboard shortcuts

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