esodan commented on PR #1152:
URL: https://github.com/apache/arrow-adbc/pull/1152#issuecomment-1752144017

   I would like to add an example on how to access a data from a SELECT 
statement, could you guide me on how can I do that?
   
   I have a problem: GArrow.Statement.execute() returns an out pointer (void*) 
but it seams to be a ArrowArrayStream which seams doesn't exists in the 
GLib/API, it is like an interface to be implemented, but no one in the API 
seems to be used to provide this functionality.
   
   I think is required a GArrowArrayStream as a GInterface to be implemented by 
a GArrowSimpleStream that can be used to bind an ArrowArrayStream returns from 
execute().
   
   By adding the above interface should be easy to bind to Vala and simple to 
use from GLIb/C API I think.
   
   This interface could be defined to contain the methods: get_schema() and 
get_next(); don't think release() is usable, as it will be a GObject and 
g_object_unref(), calling release() internally, can be used.
   
   GArrowSimpleStream could be a simple object that can be used to provide a 
GArrowArrayStream interface, and constructed from an ArrowArrayStream to access 
the functionality.
   
   Also, this will help others to write C or even, Vala or any other supported 
GObject Introspection languages, drivers to databases or sources using Arrow 
format.


-- 
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