@@ -32,7 +32,6 @@ message_group!(
32
32
Parse ,
33
33
Execute ,
34
34
Sync ,
35
- Flush ,
36
35
Terminate ,
37
36
Dump ,
38
37
Restore ,
@@ -85,18 +84,6 @@ struct LogMessage<'a>: Message {
85
84
annotations: Array <' a, i16 , Annotation <' a>>,
86
85
}
87
86
88
- /// The `ReadyForCommand` struct represents a message indicating the server is ready for a new command.
89
- struct ReadyForCommand0 <' a>: Message {
90
- /// Identifies the message as ready for command.
91
- mtype: u8 = 'Z' ,
92
- /// Length of message contents in bytes, including self.
93
- mlen: len,
94
- /// Message headers.
95
- headers: Array <' a, i16 , KeyValue <' a>>,
96
- /// Transaction state.
97
- transaction_state: TransactionState ,
98
- }
99
-
100
87
/// The `ReadyForCommand` struct represents a message indicating the server is ready for a new command.
101
88
struct ReadyForCommand <' a>: Message {
102
89
/// Identifies the message as ready for command.
@@ -347,14 +334,6 @@ struct Sync<'a>: Message {
347
334
mlen: len,
348
335
}
349
336
350
- /// The `Flush` struct represents a flush message from the client.
351
- struct Flush <' a>: Message {
352
- /// Identifies the message as flush.
353
- mtype: u8 = 'H' ,
354
- /// Length of message contents in bytes, including self.
355
- mlen: len,
356
- }
357
-
358
337
/// The `Restore` struct represents a restore message from the client.
359
338
struct Restore <' a>: Message {
360
339
/// Identifies the message as restore.
@@ -441,18 +420,6 @@ struct Parse<'a>: Message {
441
420
state_data: Array <' a, u32 , u8 >,
442
421
}
443
422
444
- /// The `ParseComplete` struct represents the response to a `Parse` request from the client.
445
- struct ParseComplete <' a>: Message {
446
- /// The headers
447
- headers: Array <' a, i16 , KeyValue <' a>>,
448
- /// Cardinality
449
- cardinality: u8 ,
450
- /// Input descriptor ID.
451
- input_typedesc_id: Uuid ,
452
- /// Output descriptor ID.
453
- output_typedesc_id: Uuid ,
454
- }
455
-
456
423
/// The `Execute` struct represents an execute message from the client.
457
424
struct Execute <' a>: Message {
458
425
/// Identifies the message as execute.
@@ -591,74 +558,6 @@ struct ConnectionParam<'a> {
591
558
value: LString <' a>,
592
559
}
593
560
594
- /// Legacy response of [`Prepare0`].
595
- struct PrepareComplete0 <' a>: Message {
596
- mtype: u8 = '1' ,
597
- mlen: len,
598
- headers: Array <' a, i16 , KeyValue <' a>>,
599
- cardinality: u8 ,
600
- input_typedesc_id: Uuid ,
601
- output_typedesc_id: Uuid ,
602
- }
603
-
604
- /// Legacy request.
605
- struct ExecuteScript0 <' a>: Message {
606
- mtype: u8 = 'Q' ,
607
- mlen: len,
608
- headers: Array <' a, i16 , KeyValue <' a>>,
609
- script_text: LString <' a>,
610
- }
611
-
612
- /// Legacy equivalent of [`Parse`].
613
- struct Prepare0 <' a>: Message {
614
- mtype: u8 = 'P' ,
615
- mlen: len,
616
- headers: Array <' a, i16 , KeyValue <' a>>,
617
- io_format: IoFormat ,
618
- expected_cardinality: u8 ,
619
- statement_name: Array <' a, u32 , u8 >,
620
- command_text: LString <' a>,
621
- }
622
-
623
- /// Legacy equivalent of [`Parse`].
624
- struct DescribeStatement0 <' a>: Message {
625
- mtype: u8 = 'D' ,
626
- mlen: len,
627
- headers: Array <' a, i16 , KeyValue <' a>>,
628
- aspect: DescribeAspect ,
629
- statement_name: Array <' a, u32 , u8 >,
630
- }
631
-
632
- /// Legacy version of [`CommandComplete`].
633
- struct CommandComplete0 <' a>: Message {
634
- mtype: u8 = 'C' ,
635
- mlen: len,
636
- headers: Array <' a, i16 , KeyValue <' a>>,
637
- status_data: Array <' a, u32 , u8 >,
638
- }
639
-
640
- /// Legacy version of [`CommandDataDescription`].
641
- struct CommandDataDescription0 <' a>: Message {
642
- mtype: u8 = 'T' ,
643
- mlen: len,
644
- headers: Array <' a, i16 , KeyValue <' a>>,
645
- result_cardinality: u8 ,
646
- input_typedesc_id: Uuid ,
647
- input_typedesc: Array <' a, u32 , u8 >,
648
- output_typedesc_id: Uuid ,
649
- output_typedesc: Array <' a, u32 , u8 >,
650
- }
651
-
652
- /// Legacy version of [`Execute`].
653
- struct Execute0 <' a>: Message {
654
- mtype: u8 = 'E' ,
655
- mlen: len,
656
- headers: Array <' a, i16 , KeyValue <' a>>,
657
- statement_name: Array <' a, u32 , u8 >,
658
- arguments: Array <' a, u32 , u8 >,
659
- }
660
-
661
-
662
561
/// Legacy version of [`Execute`] without `input_language`.
663
562
struct Execute2 <' a>: Message {
664
563
/// Identifies the message as execute.
@@ -691,19 +590,6 @@ struct Execute2<'a>: Message {
691
590
arguments: Array <' a, u32 , u8 >,
692
591
}
693
592
694
- /// Legacy version of [`Execute`].
695
- struct OptimisticExecute0 <' a>: Message {
696
- mtype: u8 = 'O' ,
697
- mlen: len,
698
- headers: Array <' a, i16 , KeyValue <' a>>,
699
- io_format: IoFormat ,
700
- expected_cardinality: u8 ,
701
- command_text: LString <' a>,
702
- input_typedesc_id: Uuid ,
703
- output_typedesc_id: Uuid ,
704
- arguments: Array <' a, u32 , u8 >,
705
- }
706
-
707
593
#[ repr( u8 ) ]
708
594
/// Data format.
709
595
enum IoFormat {
0 commit comments