From 6cb3313793bf45e197b3048f0abd2f600bf97bb5 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 12 Jul 2026 15:00:16 +0200 Subject: multi exec and discard --- pkg/commands/session.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pkg/commands/session.go (limited to 'pkg/commands/session.go') diff --git a/pkg/commands/session.go b/pkg/commands/session.go new file mode 100644 index 0000000..e7a39fe --- /dev/null +++ b/pkg/commands/session.go @@ -0,0 +1,18 @@ +package commands + +type ClientSession struct{ + Queue [][]string + InTransaction bool +} + +func NewClientSession() *ClientSession { + return &ClientSession{ + InTransaction: false, + Queue: make([][]string, 0), + } +} + +func (s *ClientSession) Reset() { + s.InTransaction = false + s.Queue = nil +} \ No newline at end of file -- cgit v1.2.3