From dee35576e02d0dd8c48a2b7d790c59bd5896d526 Mon Sep 17 00:00:00 2001 From: zhuofeng Date: Fri, 27 Dec 2024 10:47:11 +0800 Subject: [PATCH] feat: col_datetime add appendraw method --- proto/col_datetime.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proto/col_datetime.go b/proto/col_datetime.go index 7ec0e7f..f8f8d97 100644 --- a/proto/col_datetime.go +++ b/proto/col_datetime.go @@ -61,6 +61,10 @@ func (c ColDateTime) Row(i int) time.Time { return c.Data[i].Time().In(c.loc()) } +func (c *ColDateTime) AppendRaw(v DateTime) { + c.Data = append(c.Data, v) +} + func (c *ColDateTime) Append(v time.Time) { c.Data = append(c.Data, ToDateTime(v)) }