@@ -7,12 +7,15 @@ use either::Either;
77use futures_core:: future:: BoxFuture ;
88use futures_core:: stream:: BoxStream ;
99use futures_util:: { stream, FutureExt , StreamExt , TryFutureExt , TryStreamExt } ;
10+ #[ cfg( feature = "offline" ) ]
11+ use sqlx_core:: any:: Any ;
1012use sqlx_core:: any:: {
11- Any , AnyArguments , AnyColumn , AnyConnectOptions , AnyConnectionBackend , AnyQueryResult , AnyRow ,
13+ AnyArguments , AnyColumn , AnyConnectOptions , AnyConnectionBackend , AnyQueryResult , AnyRow ,
1214 AnyStatement , AnyTypeInfo , AnyTypeInfoKind ,
1315} ;
1416use sqlx_core:: connection:: Connection ;
1517use sqlx_core:: database:: Database ;
18+ #[ cfg( feature = "offline" ) ]
1619use sqlx_core:: describe:: Describe ;
1720use sqlx_core:: executor:: Executor ;
1821use sqlx_core:: sql_str:: SqlStr ;
@@ -141,6 +144,7 @@ impl AnyConnectionBackend for MySqlConnection {
141144 } )
142145 }
143146
147+ #[ cfg( feature = "offline" ) ]
144148 fn describe ( & mut self , sql : SqlStr ) -> BoxFuture < ' _ , sqlx_core:: Result < Describe < Any > > > {
145149 Box :: pin ( async move {
146150 let describe = Executor :: describe ( self , sql) . await ?;
0 commit comments