Skip to content

Commit

Permalink
fix: debug duckdb extension packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Mar 22, 2024
1 parent fc79ca6 commit eef8975
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public static void exportToParquet(List<TableToRetrieve> tables, String outputDi
}

} catch (SQLException | IOException e) {
System.out.println("§§§§§");
System.out.println(ExceptionUtils.getStackTrace(e));
throw new ArcException(ArcExceptionMessage.DATABASE_CONNECTION_FAILED);
}

Expand Down Expand Up @@ -120,6 +122,9 @@ private static void attachPostgresDatabasesToDuckdb(Connection connection, Parqu
String connexionChain = "dbname=" + c.getDatabase() + " user=" + c.getDatabaseUsername() + " port="
+ c.getPort() + " password=" + c.getDatabasePassword() + " host=" + c.getHost();

System.out.println("§§§§§§§§§§§");
System.out.println(connexionChain);

query.append("ATTACH " + query.quoteText(connexionChain) + " AS " + attachmentName(connectionIndex)
+ " (TYPE postgres, READ_ONLY);\n");

Expand Down

0 comments on commit eef8975

Please sign in to comment.