@@ -183,7 +183,7 @@ where
183183
184184 pub async fn list_tables ( & self , connection_id : Option < i32 > ) -> Result < Vec < TableInfo > > {
185185 let mut sql = String :: from (
186- "SELECT id, connection_id, schema_name, table_name, parquet_path, state_path, \
186+ "SELECT id, connection_id, schema_name, table_name, parquet_path, \
187187 CAST(last_sync AS TEXT) as last_sync, arrow_schema_json \
188188 FROM tables",
189189 ) ;
@@ -210,7 +210,7 @@ where
210210 table_name : & str ,
211211 ) -> Result < Option < TableInfo > > {
212212 let sql = format ! (
213- "SELECT id, connection_id, schema_name, table_name, parquet_path, state_path, \
213+ "SELECT id, connection_id, schema_name, table_name, parquet_path, \
214214 CAST(last_sync AS TEXT) as last_sync, arrow_schema_json \
215215 FROM tables WHERE connection_id = {} AND schema_name = {} AND table_name = {}",
216216 DB :: bind_param( 1 ) ,
@@ -227,23 +227,16 @@ where
227227 . map_err ( Into :: into)
228228 }
229229
230- pub async fn update_table_sync (
231- & self ,
232- table_id : i32 ,
233- parquet_path : & str ,
234- state_path : & str ,
235- ) -> Result < ( ) > {
230+ pub async fn update_table_sync ( & self , table_id : i32 , parquet_path : & str ) -> Result < ( ) > {
236231 let sql = format ! (
237- "UPDATE tables SET parquet_path = {}, state_path = {}, last_sync = CURRENT_TIMESTAMP \
232+ "UPDATE tables SET parquet_path = {}, last_sync = CURRENT_TIMESTAMP \
238233 WHERE id = {}",
239234 DB :: bind_param( 1 ) ,
240235 DB :: bind_param( 2 ) ,
241- DB :: bind_param( 3 ) ,
242236 ) ;
243237
244238 query ( & sql)
245239 . bind ( parquet_path)
246- . bind ( state_path)
247240 . bind ( table_id)
248241 . execute ( & self . pool )
249242 . await ?;
@@ -263,7 +256,7 @@ where
263256 . ok_or_else ( || anyhow ! ( "Table '{}.{}' not found" , schema_name, table_name) ) ?;
264257
265258 let sql = format ! (
266- "UPDATE tables SET parquet_path = NULL, state_path = NULL, last_sync = NULL WHERE id = {}" ,
259+ "UPDATE tables SET parquet_path = NULL, last_sync = NULL WHERE id = {}" ,
267260 DB :: bind_param( 1 )
268261 ) ;
269262
@@ -279,7 +272,7 @@ where
279272 . ok_or_else ( || anyhow ! ( "Connection '{}' not found" , name) ) ?;
280273
281274 let sql = format ! (
282- "UPDATE tables SET parquet_path = NULL, state_path = NULL, last_sync = NULL \
275+ "UPDATE tables SET parquet_path = NULL, last_sync = NULL \
283276 WHERE connection_id = {}",
284277 DB :: bind_param( 1 )
285278 ) ;
0 commit comments