aboutsummaryrefslogtreecommitdiff
path: root/src/proto/command_complete.zig
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2023-09-29 09:44:54 +0100
committerMartin Ashby <martin@ashbysoft.com>2023-09-29 09:44:54 +0100
commitfada72cd26ad31e1fc834788c1224ed05a78143b (patch)
treedb71f2cbc6cbf9c47148271682641c940eb75650 /src/proto/command_complete.zig
parent6de632a41bdd127e92de68d61a18dfee91b8b188 (diff)
downloadpgz-main.tar.gz
pgz-main.tar.bz2
pgz-main.tar.xz
pgz-main.zip
Generify ErrorResponse to allow for NoticeResponse which shares it'sHEADmain
structure. Add a very basic test for running an actual query
Diffstat (limited to 'src/proto/command_complete.zig')
-rw-r--r--src/proto/command_complete.zig7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/proto/command_complete.zig b/src/proto/command_complete.zig
index f9a9e26..ed8e052 100644
--- a/src/proto/command_complete.zig
+++ b/src/proto/command_complete.zig
@@ -30,13 +30,6 @@ pub fn deinit(self: *CommandComplete, a: std.mem.Allocator) void {
if (self.buf != null) a.free(self.buf.?);
}
-pub fn clone(self: CommandComplete, a: std.mem.Allocator) !CommandComplete {
- var ba = ByteArrayList.init(a);
- errdefer ba.deinit();
- try self.write(a, ba.writer());
- return try CommandComplete.read(a, ba.items);
-}
-
test "round trip" {
const allocator = std.testing.allocator;
var sm = CommandComplete{