paleolimbot opened a new issue, #48:
URL: https://github.com/apache/arrow-nanoarrow/issues/48

   Using nanoarrow from C++ (as is done in the ADBC postgres driver) is a bit 
of a pain because early returns or exceptions require keeping track of any 
nanoarrow structs that require cleaning up (e.g., `ArrowArray`, `ArrowSchema`, 
`ArrowArrayStream`, `ArrowBuffer`, `ArrowArrayView`. 
   
   The ADBC postgres driver has this: 
https://github.com/apache/arrow-adbc/blob/main/c/drivers/postgres/statement.cc#L78-L107,
 and the name `Releaser` is a good one.
   
   I was thinking something like a 'nanoarrow.hpp' file that looks like:
   
   ```cpp
   #include "nanoarrow.h"
   
   namespace nanoarrow {
   
   template <typename T>
   class Releaser { ... };
   
   }
   ```


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