LucaCappelletti94 commented on code in PR #2618:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/2618#discussion_r4250911342


##########
src/ast/mod.rs:
##########
@@ -4930,6 +4930,17 @@ pub enum Statement {
         channel: Ident,
     },
     /// ```sql
+    /// DO [ LANGUAGE lang_name ] code
+    /// ```
+    ///
+    /// See Postgres <https://www.postgresql.org/docs/current/sql-do.html>
+    Do {
+        /// Optional procedural language name.
+        language: Option<Ident>,
+        /// The anonymous code block, a string literal.
+        code: ValueWithSpan,
+    },

Review Comment:
   Refactor this to a named struct, as every new statement variant does. I will 
do another review round after this refactoring as I expect most of the code 
will change.
   
   ```suggestion
       Do(DoStatement),
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to