@@ -9,37 +9,22 @@ use pyo3::{
99    IntoPyObjectExt , 
1010} ; 
1111use  pyo3_arrow:: PyTable ; 
12- use  stac_duckdb:: { Client ,   Config } ; 
13- use  std:: sync:: Mutex ; 
12+ use  stac_duckdb:: Client ; 
13+ use  std:: { path :: PathBuf ,   sync:: Mutex } ; 
1414
1515#[ pyclass( frozen) ]  
1616pub  struct  DuckdbClient ( Mutex < Client > ) ; 
1717
1818#[ pymethods]  
1919impl  DuckdbClient  { 
2020    #[ new]  
21-     #[ pyo3( signature = ( * ,  use_s3_credential_chain= false ,  use_azure_credential_chain= false ,  use_httpfs= false ,   use_hive_partitioning=false ,  install_extensions= true ,  custom_extension_repository= None ,  extension_directory= None ) ) ]  
21+     #[ pyo3( signature = ( * ,  use_hive_partitioning=false ,  extension_directory= None ,  install_extensions= true ) ) ]  
2222    fn  new ( 
23-         use_s3_credential_chain :  bool , 
24-         use_azure_credential_chain :  bool , 
25-         use_httpfs :  bool , 
2623        use_hive_partitioning :  bool , 
24+         extension_directory :  Option < PathBuf > , 
2725        install_extensions :  bool , 
28-         custom_extension_repository :  Option < String > , 
29-         extension_directory :  Option < String > , 
3026    )  -> Result < DuckdbClient >  { 
31-         let  config = Config  { 
32-             use_s3_credential_chain, 
33-             use_azure_credential_chain, 
34-             use_httpfs, 
35-             use_hive_partitioning, 
36-             install_extensions, 
37-             custom_extension_repository, 
38-             extension_directory, 
39-             convert_wkb :  true , 
40-         } ; 
41-         let  client = Client :: with_config ( config) ?; 
42-         Ok ( DuckdbClient ( Mutex :: new ( client) ) ) 
27+         todo ! ( ) 
4328    } 
4429
4530    #[ pyo3( signature = ( href,  * ,  intersects=None ,  ids=None ,  collections=None ,  limit=None ,  bbox=None ,  datetime=None ,  include=None ,  exclude=None ,  sortby=None ,  filter=None ,  query=None ,  * * kwargs) ) ]  
@@ -123,10 +108,11 @@ impl DuckdbClient {
123108                . 0 
124109                . lock ( ) 
125110                . map_err ( |err| PyException :: new_err ( err. to_string ( ) ) ) ?; 
126-             let  convert_wkb = client. config . convert_wkb ; 
127-             client. config . convert_wkb  = false ; 
111+             // FIXME this is awkward 
112+             let  convert_wkb = client. convert_wkb ; 
113+             client. convert_wkb  = false ; 
128114            let  result = client. search_to_arrow ( & href,  search) ; 
129-             client. config . convert_wkb  = convert_wkb; 
115+             client. convert_wkb  = convert_wkb; 
130116            result?
131117        } ; 
132118        if  record_batches. is_empty ( )  { 
0 commit comments