@@ -4558,6 +4558,11 @@ pub enum Statement {
45584558 comment : Option < String > ,
45594559 } ,
45604560 /// ```sql
4561+ /// SHOW EXTERNAL VOLUMES [LIKE '<pattern>']
4562+ /// ```
4563+ /// See <https://docs.snowflake.com/en/sql-reference/sql/show-external-volumes>
4564+ ShowExternalVolumes ( ShowExternalVolumes ) ,
4565+ /// ```sql
45614566 /// CREATE [ OR REPLACE ] WAREHOUSE [ IF NOT EXISTS ] <name>
45624567 /// [ [ WITH ] <property> = <value> [ ... ] ]
45634568 /// ```
@@ -6293,6 +6298,7 @@ impl fmt::Display for Statement {
62936298 }
62946299 Ok ( ( ) )
62956300 }
6301+ Statement :: ShowExternalVolumes ( s) => write ! ( f, "{s}" ) ,
62966302 Statement :: CreateWarehouse ( s) => write ! ( f, "{s}" ) ,
62976303 Statement :: CopyIntoSnowflake {
62986304 kind,
@@ -11131,6 +11137,28 @@ pub struct ShowObjects {
1113111137 pub show_options : ShowStatementOptions ,
1113211138}
1113311139
11140+ /// ```sql
11141+ /// SHOW EXTERNAL VOLUMES [LIKE '<pattern>']
11142+ /// ```
11143+ /// See <https://docs.snowflake.com/en/sql-reference/sql/show-external-volumes>
11144+ #[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
11145+ #[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
11146+ #[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
11147+ pub struct ShowExternalVolumes {
11148+ /// Optional filter (e.g. `LIKE`).
11149+ pub filter : Option < ShowStatementFilter > ,
11150+ }
11151+
11152+ impl fmt:: Display for ShowExternalVolumes {
11153+ fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
11154+ write ! ( f, "SHOW EXTERNAL VOLUMES" ) ?;
11155+ if let Some ( ref filter) = self . filter {
11156+ write ! ( f, " {filter}" ) ?;
11157+ }
11158+ Ok ( ( ) )
11159+ }
11160+ }
11161+
1113411162/// MSSQL's json null clause
1113511163///
1113611164/// ```plaintext
@@ -12626,6 +12654,12 @@ impl From<CreateUser> for Statement {
1262612654 }
1262712655}
1262812656
12657+ impl From < ShowExternalVolumes > for Statement {
12658+ fn from ( s : ShowExternalVolumes ) -> Self {
12659+ Self :: ShowExternalVolumes ( s)
12660+ }
12661+ }
12662+
1262912663impl From < CreateWarehouse > for Statement {
1263012664 fn from ( c : CreateWarehouse ) -> Self {
1263112665 Self :: CreateWarehouse ( c)
0 commit comments