@@ -19,11 +19,11 @@ pub struct DuckdbClient(Mutex<Client>);
1919#[ pymethods]  
2020impl  DuckdbClient  { 
2121    #[ new]  
22-     #[ pyo3( signature = ( * ,  extension_directory=None ,  extensions=Vec :: new( ) ,  install_spatial =true ,  use_hive_partitioning=false ) ) ]  
22+     #[ pyo3( signature = ( * ,  extension_directory=None ,  extensions=Vec :: new( ) ,  install_extensions =true ,  use_hive_partitioning=false ) ) ]  
2323    fn  new ( 
2424        extension_directory :  Option < PathBuf > , 
2525        extensions :  Vec < String > , 
26-         install_spatial :  bool , 
26+         install_extensions :  bool , 
2727        use_hive_partitioning :  bool , 
2828    )  -> Result < DuckdbClient >  { 
2929        let  connection = Connection :: open_in_memory ( ) ?; 
@@ -33,13 +33,15 @@ impl DuckdbClient {
3333                [ extension_directory. to_string_lossy ( ) ] , 
3434            ) ?; 
3535        } 
36-         if  install_spatial  { 
36+         if  install_extensions  { 
3737            connection. execute ( "INSTALL spatial" ,  [ ] ) ?; 
38+             connection. execute ( "INSTALL icu" ,  [ ] ) ?; 
3839        } 
3940        for  extension in  extensions { 
4041            connection. execute ( & format ! ( "LOAD '{}'" ,  extension) ,  [ ] ) ?; 
4142        } 
4243        connection. execute ( "LOAD spatial" ,  [ ] ) ?; 
44+         connection. execute ( "LOAD icu" ,  [ ] ) ?; 
4345        let  mut  client = Client :: from ( connection) ; 
4446        client. use_hive_partitioning  = use_hive_partitioning; 
4547        Ok ( DuckdbClient ( Mutex :: new ( client) ) ) 
0 commit comments