PKGBUILD/pkg/db/errors.go

17 lines
631 B
Go
Raw Normal View History

2019-08-20 19:37:45 +00:00
package db
import (
"errors"
)
var (
errorBeginTransaction = errors.New("Can not start new transaction")
errorRowNotFound = errors.New("Can not find row by given ID")
errorPrepareStatement = errors.New("Can not prepare sql statement")
errorRollbackTransaction = errors.New("Can not rollback transaction")
errorScanRow = errors.New("Can not scan row")
errorStatementExecute = errors.New("Can not execute statement")
errorStatementQuery = errors.New("Can not query statement")
errorUnknownMeasuredValueType = errors.New("Unknown measured value type")
)