fix: gnu-cc, missing humidity table, restrict repository select

This commit is contained in:
2020-06-27 21:12:00 +02:00
parent 92a776f6ce
commit 8c1bd57ad5
9 changed files with 69 additions and 15 deletions

View File

@ -16,6 +16,7 @@ import (
// Database is a general interface for a database backend like postgres, oracle
// or sqlite
type Database interface {
Close() error
DeleteDevices(ctx context.Context, deviceIDs ...string) error
DeleteSensors(ctx context.Context, sensorIDs ...string) error
InsertDevices(ctx context.Context, devices ...*types.Device) error
@ -120,5 +121,4 @@ func New(dsnURL *url.URL, flogger logger.Logger) (Database, error) {
}
return database, nil
}