From b9690093419b64e09c1aa0dd030990a5f69bd26b Mon Sep 17 00:00:00 2001 From: Sajith <12225018+hexhog@users.noreply.github.com> Date: Wed, 12 Jul 2023 20:10:02 -0400 Subject: [PATCH] Update column_strings.go --- column_strings.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/column_strings.go b/column_strings.go index ccc5422..432dbd5 100644 --- a/column_strings.go +++ b/column_strings.go @@ -232,25 +232,25 @@ func (c *columnString) Snapshot(chunk commit.Chunk, dst *commit.Buffer) { }) } -// rwString represents read-write accessor for strings -type rwString struct { +// RwString represents read-write accessor for strings +type RwString struct { rdString[*columnString] writer *commit.Buffer } // Set sets the value at the current transaction cursor -func (s rwString) Set(value string) { +func (s RwString) Set(value string) { s.writer.PutString(commit.Put, *s.cursor, value) } // Merge merges the value at the current transaction cursor -func (s rwString) Merge(value string) { +func (s RwString) Merge(value string) { s.writer.PutString(commit.Merge, *s.cursor, value) } // String returns a string column accessor -func (txn *Txn) String(columnName string) rwString { - return rwString{ +func (txn *Txn) String(columnName string) RwString { + return RwString{ rdString: readStringOf[*columnString](txn, columnName), writer: txn.bufferFor(columnName), }