Skip to content

Commit

Permalink
fix: postgres duckdb extension packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Mar 21, 2024
1 parent 1f776ca commit 8d7b306
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.util.List;

import org.apache.commons.io.FileUtils;
import org.springframework.core.io.ClassPathResource;
import org.springframework.util.ResourceUtils;

import fr.insee.arc.utils.dao.GenericPreparedStatementBuilder;
Expand Down Expand Up @@ -93,9 +94,10 @@ private static void attachPostgresDatabasesToDuckdb(Connection connection, Parqu
PropertiesHandler properties = PropertiesHandler.getInstance();
int numberOfPods = properties.getConnectionProperties().size();

File f = ResourceUtils.getFile("classpath:duckdb");
File folder = new ClassPathResource("duckdb").getFile();

File target = new File("./duckdb");
FileUtils.copyDirectory(f, target);
FileUtils.copyDirectory(folder, target);
String path=target.getAbsolutePath();

GenericPreparedStatementBuilder query = new GenericPreparedStatementBuilder();
Expand Down

0 comments on commit 8d7b306

Please sign in to comment.