New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Windows Support #3
Comments
https://news.ycombinator.com/threads?id=kermatt#36729903
I do, and happy to test. |
Thank you! I should be able to get pretty far with the Github actions Windows runner but would definitely appreciate someone testing it in real life on Windows. The build process is a slight modification to the default DuckDB extension template which uses CMake. |
So far, using Nix to create local environment with dependencies on Debian 12, and cross-compiling with mingw32:
A CMake toolchain file:
Gets me halfway:
|
gets me to Assuming cross-compiling unixODBC is not a fool's errand |
Do the instructions for the nix shell work? https://github.com/rupurt/odbc-scanner-duckdb-extension#development |
I tried debugging this by compiling with |
They do (as far as I can tell, Nix is new for me), and with the changes in 9ad0f91 it builds, failing at link time which is not a surprise as linking probably needs to occur against Windows ODBC lib not unixODBC. Not sure yet how to tackle that as I'm cross-compiling on Debian. |
Sweet. Great to hear. I'll try to take a stab myself this week. |
Has there been any progress on this issue? This would be most welcome as it would allow access to many other databases (MS SQL Server for one). |
Sorry, I haven't had time to work on this extension in a while. As I learned more about ODBC and the DuckDB API I've decided to totally re-architect this extension. I'm building a performance oriented ODBC client in zig. I will then link to that library for this extension to do the heavy lifting. I need performance oriented bulk ODBC -> Arrow format for other projects and bindings to DataFrame libraries like Polars. |
No apology necessary. I am just interested in this and noticed there was nothing since last July. I am definitely supportive of what you just described and I am happy to test it when it is ready to do. My main database is in SQL Server but I am trying to build a smaller, performance driven platform for data analytics and DuckDB is proving to be well suited for this. I will keep an eye on this for your future updates. |
I've got the Zig ODBC library to a decent spot where I'm making regular progress https://github.com/rupurt/zodbc. I have the build working on Linux I think it'll take me ~1 more month to get a robust initial version. Adherence to the ODBC concurrency model for maximum performance is why I decided to write it in the first place. That work is in To get it integrated with DuckDB my plan is to ship a python |
I've got Zig building DuckDB extensions working https://github.com/rupurt/duckdb-extension-template-zig. Starting work on the Zig ODBC DuckDB extension this weekend. Stay tuned! |
No description provided.
The text was updated successfully, but these errors were encountered: