fix: gnu-cc, missing humidity table, restrict repository select
This commit is contained in:
@ -16,6 +16,12 @@ type SQLite struct {
|
||||
queries map[string]string
|
||||
}
|
||||
|
||||
// Close closes the database and prevents new queries from starting. Close then
|
||||
// waits for all queries that have started processing on the server to finish.
|
||||
func (sqlite *SQLite) Close() error {
|
||||
return sqlite.dbo.Close()
|
||||
}
|
||||
|
||||
// DeleteDevices from the database
|
||||
func (sqlite *SQLite) DeleteDevices(ctx context.Context, deviceIDs ...string) error {
|
||||
queryFile := "deleteDevice.sql"
|
||||
@ -227,7 +233,7 @@ func (sqlite *SQLite) Scheme(ctx context.Context) error {
|
||||
for _, query := range []string{
|
||||
sqlite.queries["createTableDevices.sql"],
|
||||
sqlite.queries["createTableSensors.sql"],
|
||||
sqlite.queries["createTableHumidites.sql"],
|
||||
sqlite.queries["createTableHumidities.sql"],
|
||||
sqlite.queries["createTablePressures.sql"],
|
||||
sqlite.queries["createTableTemperatures.sql"],
|
||||
} {
|
||||
|
Reference in New Issue
Block a user