From a63a4db2f5c78feb2c6d5263dc68740b1dcedf8b Mon Sep 17 00:00:00 2001 From: cjw Date: Thu, 9 Jan 2025 10:49:27 +0800 Subject: [PATCH] Update comment of `TableObject::TableName` src/ast/mod.rs Co-authored-by: Ifeanyi Ubah --- src/ast/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ast/mod.rs b/src/ast/mod.rs index 61db61ece..41f833647 100644 --- a/src/ast/mod.rs +++ b/src/ast/mod.rs @@ -7771,7 +7771,11 @@ impl fmt::Display for RenameTable { #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] #[cfg_attr(feature = "visitor", derive(Visit, VisitMut))] pub enum TableObject { - // for simple table name + /// Table specified by name. + /// Example: + /// ```sql + /// INSERT INTO my_table + /// ``` TableName(#[cfg_attr(feature = "visitor", visit(with = "visit_relation"))] ObjectName), /// Table specified as a function.