@@ -32,7 +32,6 @@ message_group!(
3232 Parse ,
3333 Execute ,
3434 Sync ,
35- Flush ,
3635 Terminate ,
3736 Dump ,
3837 Restore ,
@@ -85,18 +84,6 @@ struct LogMessage<'a>: Message {
8584 annotations: Array <' a, i16 , Annotation <' a>>,
8685}
8786
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-
10087/// The `ReadyForCommand` struct represents a message indicating the server is ready for a new command.
10188struct ReadyForCommand <' a>: Message {
10289 /// Identifies the message as ready for command.
@@ -347,14 +334,6 @@ struct Sync<'a>: Message {
347334 mlen: len,
348335}
349336
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-
358337/// The `Restore` struct represents a restore message from the client.
359338struct Restore <' a>: Message {
360339 /// Identifies the message as restore.
@@ -441,18 +420,6 @@ struct Parse<'a>: Message {
441420 state_data: Array <' a, u32 , u8 >,
442421}
443422
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-
456423/// The `Execute` struct represents an execute message from the client.
457424struct Execute <' a>: Message {
458425 /// Identifies the message as execute.
@@ -591,74 +558,6 @@ struct ConnectionParam<'a> {
591558 value: LString <' a>,
592559}
593560
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-
662561/// Legacy version of [`Execute`] without `input_language`.
663562struct Execute2 <' a>: Message {
664563 /// Identifies the message as execute.
@@ -691,19 +590,6 @@ struct Execute2<'a>: Message {
691590 arguments: Array <' a, u32 , u8 >,
692591}
693592
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-
707593#[ repr( u8 ) ]
708594/// Data format.
709595enum IoFormat {
0 commit comments