Hi Roman,

Thank you for your suggestion. I did consider using code generation to
come up with an API, but ultimately I was looking for a more abstract
interface to Sedna in Ruby myself. That would mean building another
abstraction layer on top, and with the relatively simple C API it
wasn't really worth it for me (writing a C extension directly was at
least just as easy -- the Ruby C API is very simple).

As an example, I want to make use of blocks (procs, lambdas, whatever
the equivalent is in other languages) to handle automatic transaction
committing and closing of connections. This is quite a little
different from the python API or using the C API directly.

Additionally I am looking into implementing a (multi-threaded)
non-blocking version for Ruby 1.9 at some point in the future. I
believe that would be more difficult to do if I'd use a
(SWIG-)generated API.

If you have suggestions on how to combine the best of both worlds I'm all ears.
Suggestions on how to improve the API are also very much welcome.


Kind regards,

Rolf Timmermans



2008/12/9 Roman Pastukhov <[EMAIL PROTECTED]>:
> Hello Rolf,
>
> We have a python driver created using swig that uses Sedna's C API.
> I believe you can use the same .i file to create a Ruby wrapper.
> It would also be nice if Python and Ruby API's are similar.
>
> Python driver is available here:
>  http://www.modis.ispras.ru/FTPContent/sedna/api/pydriver.zip
>
>
> Monday, December 8, 2008, 11:54:23 PM, you wrote:
>> After playing around with Sedna for a bit but failing to find a client
>> API for the Ruby programming language, I've decided to roll my own.
>
>> The client library is a Ruby extension (written in C) that is built on
>> top of the C driver that is shipped with Sedna. It adds a thin
>> abstraction layer on top of the C API in order to offer a Ruby-like
>> API-style. The current version is a "development preview" version and
>> should probably not be used in production environments yet.
>
> --
> Best regards,
>  Roman                            mailto:[EMAIL PROTECTED]
>
>

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to