diff options
author | Martin Ashby <martin@ashbysoft.com> | 2023-09-26 07:19:42 +0100 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2023-09-26 07:19:42 +0100 |
commit | 10cbd00671f7144122f1d79a3ac1f67cbb9a51c6 (patch) | |
tree | 6c8ec92f22e05db9704a93a15f554b4890338802 /src/proto/proto.zig | |
parent | 183d60a6e87230cc767c56900b94c9c694596de1 (diff) | |
download | pgz-10cbd00671f7144122f1d79a3ac1f67cbb9a51c6.tar.gz pgz-10cbd00671f7144122f1d79a3ac1f67cbb9a51c6.tar.bz2 pgz-10cbd00671f7144122f1d79a3ac1f67cbb9a51c6.tar.xz pgz-10cbd00671f7144122f1d79a3ac1f67cbb9a51c6.zip |
Generify copy response and add CopyOutResponse and CopyBothResponse
Diffstat (limited to 'src/proto/proto.zig')
-rw-r--r-- | src/proto/proto.zig | 7 |
1 files changed, 5 insertions, 2 deletions
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; } |