@@ -288,6 +288,15 @@ impl UserQuery {
288288 Statement :: Use ( entity) => {
289289 return self . execute_use_statement ( entity) . await ;
290290 }
291+ Statement :: ShowDatabases { .. }
292+ | Statement :: ShowSchemas { .. }
293+ | Statement :: ShowTables { .. }
294+ | Statement :: ShowColumns { .. }
295+ | Statement :: ShowViews { .. }
296+ | Statement :: ShowFunctions { .. }
297+ | Statement :: ShowObjects { .. }
298+ | Statement :: ShowVariables { .. }
299+ | Statement :: ShowVariable { .. } => return Box :: pin ( self . show_query ( * s) ) . await ,
291300 other => {
292301 return ex_error:: NotSupportedStatementInReadOnlyModeSnafu {
293302 statement : other. to_string ( ) ,
@@ -297,7 +306,17 @@ impl UserQuery {
297306 } ,
298307 DFStatement :: Explain ( explain) => match * explain. statement {
299308 DFStatement :: Statement ( s) => match * s {
300- Statement :: Query ( ..) | Statement :: Use ( ..) => {
309+ Statement :: Query ( ..)
310+ | Statement :: Use ( ..)
311+ | Statement :: ShowDatabases { .. }
312+ | Statement :: ShowSchemas { .. }
313+ | Statement :: ShowTables { .. }
314+ | Statement :: ShowColumns { .. }
315+ | Statement :: ShowViews { .. }
316+ | Statement :: ShowFunctions { .. }
317+ | Statement :: ShowObjects { .. }
318+ | Statement :: ShowVariables { .. }
319+ | Statement :: ShowVariable { .. } => {
301320 return self . execute_sql ( & self . query ) . await ;
302321 }
303322 other => {
0 commit comments