From 10cbd00671f7144122f1d79a3ac1f67cbb9a51c6 Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Tue, 26 Sep 2023 07:19:42 +0100 Subject: Generify copy response and add CopyOutResponse and CopyBothResponse --- src/proto/proto.zig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/proto/proto.zig') diff --git a/src/proto/proto.zig b/src/proto/proto.zig index 4465e4b..df1b717 100644 --- a/src/proto/proto.zig +++ b/src/proto/proto.zig @@ -9,7 +9,10 @@ pub const Query = @import("query.zig"); pub const DataRow = @import("data_row.zig"); pub const RowDescription = @import("row_description.zig"); pub const CommandComplete = @import("command_complete.zig"); -pub const CopyInResponse = @import("copy_in_response.zig"); +const CopyXResponse = @import("copy_x_response.zig").CopyXResponse; +pub const CopyInResponse = CopyXResponse('G'); +pub const CopyOutResponse = CopyXResponse('H'); +pub const CopyBothResponse = CopyXResponse('W'); test { _ = AuthenticationRequest; @@ -22,5 +25,5 @@ test { _ = DataRow; _ = RowDescription; _ = CommandComplete; - _ = CopyInResponse; + _ = CopyXResponse; } -- cgit v1.2.3-ZIG