Ok, so that's what I feared :) you want to re-implement a carob in erlang

The problem here is that the protocol is subject to changes...
Actually, the whole point of Carob is to insulate applications from protocol issues.
Keeping the protocol implementation private brings a great degree of freedom for
developers, allowing them to easily implement new features, optimize performance
and even sometimes fix bugs without disrupting backward compatibility.
So, having a third implem (additionally to jdbc driver and carob) will lead to
yet-another lib to maintain upon any protocol change.

A better approach could be to make use of Carob via C++ erlang facility:
<http://www.erlang.se/doc/doc-5.4/doc/tutorial/part_frame.html>
You will then get the best of each: an erlang connector much easier to implement (thanks to carob API)
+ the benefit of Carob's updates, sticking to protocol changes, transparently

What do you think ?


This being said, Carob is open source, so if you decide to implement a native erlang connector, we will be pleased to provide you with the spec.
If you want, you can already have a look at this class javadoc which contains all commands:
http://sequoia.continuent.org/doc/latest/api/org/continuent/sequoia/common/protocol/Commands.html

Thanks you,
Gilles.


Daniel Bartlett a écrit :
Hi Gilles,

Gilles Rayrat wrote:
  
From what I understand, you want to put a erlang program *on top* of
carob to talk to sequoia ?
    

No, unfortunately that would not fit in the model of concurrency for erlang and this application context.
I intend to code a Carob Client API module in erlang.

  
If this is the case, carob is designed to stick as much as possible to
the jdbc API. Call to, eg. executeQuery(), are very similar to jdbc, you
have connections, statements, etc.
Perhaps the javadoc-like could help you ?
http://carob.continuent.org/doc/carob/doxygen-2006-11-10/html/index.html
Is that what you need ?
    

I wish I could! ;)

Cheers,
Dan.


  
_______________________________________________
Carob mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob

Reply via email to