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
Click to show internal directories.
Click to hide internal directories.