João Costa @JD557@blog.joaocosta.eu Follow

Portuguese software engineer at Kevel.

My instance is running on a small server so please #nobot

Web

https://www.joaocosta.eu/

GitHub

https://github.com/JD557

Twitter

https://twitter.com/JD557

Itch.io

https://jd557.itch.io

  • Notes
  • Articles 6
  • Followers 41
  • Following 57
João Costa's avatar
João Costa
@JD557@blog.joaocosta.eu

Recently, Lorenzo Gabriel released https://github.com/lolgab/scala-native-jdbc, a JDBC implementation for Scala Native, which allows libraries that rely on JDBC (such as Scala-SQL) to be used in a native environment.

I've been slowly playing around with adding DuckDB JDBC compliant connector to it, and it's looking pretty nice. I did have to use some trickery to avoid hitting issues with SQLite/DuckDB dialect mismatches, though. 😄

I plan to open source this eventually, but first I want to make some more tests and clean the code (there's quite a few manual memory management involved).

I also need to figure out how this should be distributed... On MacOS DuckDB is distributed via a dylib with an rpath, which is a bit annoying to use on Scala Native... TBD

GitHub - lolgab/scala-native-jdbc: JDBC Implementation for Scala Native GitHub
iTerm screenshot showing a small piece of Scala code that loads a 200k entries CSV and parquet via DuckDB
  • permalink
  • interact from your instance
  • a month ago
  • 1 like
Likes
@davesmith00000@mastodon.gamedev.place
Powered by microblog.pub 2.0.0+dev (source code) and the ActivityPub protocol. Admin.