@@ -4608,6 +4608,11 @@ pub enum Statement {
46084608 comment : Option < String > ,
46094609 } ,
46104610 /// ```sql
4611+ /// SHOW EXTERNAL VOLUMES [LIKE '<pattern>']
4612+ /// ```
4613+ /// See <https://docs.snowflake.com/en/sql-reference/sql/show-external-volumes>
4614+ ShowExternalVolumes ( ShowExternalVolumes ) ,
4615+ /// ```sql
46114616 /// CREATE [ OR REPLACE ] WAREHOUSE [ IF NOT EXISTS ] <name>
46124617 /// [ [ WITH ] <property> = <value> [ ... ] ]
46134618 /// ```
@@ -6344,6 +6349,7 @@ impl fmt::Display for Statement {
63446349 }
63456350 Ok ( ( ) )
63466351 }
6352+ Statement :: ShowExternalVolumes ( s) => write ! ( f, "{s}" ) ,
63476353 Statement :: CreateWarehouse ( s) => write ! ( f, "{s}" ) ,
63486354 Statement :: CopyIntoSnowflake {
63496355 kind,
@@ -11180,6 +11186,28 @@ pub struct ShowObjects {
1118011186 pub show_options : ShowStatementOptions ,
1118111187}
1118211188
11189+ /// ```sql
11190+ /// SHOW EXTERNAL VOLUMES [LIKE '<pattern>']
11191+ /// ```
11192+ /// See <https://docs.snowflake.com/en/sql-reference/sql/show-external-volumes>
11193+ #[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
11194+ #[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
11195+ #[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
11196+ pub struct ShowExternalVolumes {
11197+ /// Optional filter (e.g. `LIKE`).
11198+ pub filter : Option < ShowStatementFilter > ,
11199+ }
11200+
11201+ impl fmt:: Display for ShowExternalVolumes {
11202+ fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
11203+ write ! ( f, "SHOW EXTERNAL VOLUMES" ) ?;
11204+ if let Some ( ref filter) = self . filter {
11205+ write ! ( f, " {filter}" ) ?;
11206+ }
11207+ Ok ( ( ) )
11208+ }
11209+ }
11210+
1118311211/// MSSQL's json null clause
1118411212///
1118511213/// ```plaintext
@@ -12675,6 +12703,12 @@ impl From<CreateUser> for Statement {
1267512703 }
1267612704}
1267712705
12706+ impl From < ShowExternalVolumes > for Statement {
12707+ fn from ( s : ShowExternalVolumes ) -> Self {
12708+ Self :: ShowExternalVolumes ( s)
12709+ }
12710+ }
12711+
1267812712impl From < CreateWarehouse > for Statement {
1267912713 fn from ( c : CreateWarehouse ) -> Self {
1268012714 Self :: CreateWarehouse ( c)
0 commit comments