postgresql

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgreSQL

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

func Open

func Open(hostname, username, password, database string) *PostgreSQL

func (*PostgreSQL) FetchByUUID

func (p *PostgreSQL) FetchByUUID(uuid string) (*schema.TelemetryData, error)

func (*PostgreSQL) FetchLast100

func (p *PostgreSQL) FetchLast100() ([]schema.TelemetryData, error)

func (*PostgreSQL) Insert

func (p *PostgreSQL) Insert(data *schema.TelemetryData) error

Jump to

Keyboard shortcuts

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