From ea7d565c469314fe214efd8b13273f8d2976a402 Mon Sep 17 00:00:00 2001 From: adi-kmt Date: Thu, 28 Nov 2024 15:44:42 +0530 Subject: [PATCH] Adding date field to horae table --- horaedb/value.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/horaedb/value.go b/horaedb/value.go index ef8695c..714ce00 100644 --- a/horaedb/value.go +++ b/horaedb/value.go @@ -24,6 +24,7 @@ type DataType int const ( NULL DataType = iota TIMESTAMP + DATE STRING DOUBLE FLOAT @@ -60,6 +61,10 @@ func (v Value) TimestampValue() int64 { return v.Int64Value() } +func (v Value) DateValue() int64 { + return v.Int64Value() +} + func (v Value) StringValue() string { if v.IsNull() { return ""