paleolimbot commented on issue #227:
URL: https://github.com/apache/arrow-adbc/issues/227#issuecomment-1344381396

   R's C API has a type for "external pointer to a function", which is what I 
used here: 
https://github.com/paleolimbot/adbcsqlite3/blob/master/src/init.c#L23 with the 
driver init function. The concept of "dll + symbol" is possible too but harder 
to deal with, I think.
   
   The main hurdle for R packaging is that the built-in build system makes it 
difficult to drag-and-drop a CMake project. It is usually simpler to write a 
bash configure script that sets the build flags and use R's bulit-in 
functionality to manage the install on various platforms. My hack for that was 
here: https://github.com/paleolimbot/adbcsqlite3/blob/master/src/driver.c .
   
   That falls apart for something like FlightSQL. Currently the easiest way to 
do that one would be to just tack it on to the arrow R package (maybe that's 
what you're planning for Python, too).
   
   (Kirill may have better ideas!)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to