Add ability to ERS to update or move ERS SQL events to a new table & add *export flag for ERS readers

This commit is contained in:
arberkatellari
2024-12-10 20:05:23 +02:00
committed by Dan Christian Bogos
parent a2b86e1a02
commit d35b14b6b9
30 changed files with 1898 additions and 1036 deletions

View File

@@ -451,6 +451,13 @@ func TestParseTimeDetectLayout(t *testing.T) {
if err != nil || date.Sub(expected).Seconds() > 20 || date.Sub(expected).Seconds() < 19 {
t.Error("error parsing date: ", date.Sub(expected).Seconds())
}
date, err = ParseTimeDetectLayout("-20s", "")
expected = time.Now()
if err != nil || expected.Sub(date).Seconds() > 21 || expected.Sub(date).Seconds() < 20 {
t.Error("error parsing date: ", expected.Sub(date).Seconds())
}
expected = time.Now().AddDate(0, 0, 1)
if date, err := ParseTimeDetectLayout("*daily", ""); err != nil {
t.Error(err)