Sorry....one last thought. I didn't take a look to EXDI but I think it is more or less like OpenDBX but in Smalltalk.<br><br>I mean, with SqueakDBX we just wrap OpenDBX, which gives us a unified API. OpenDBX then talks to each database client library. So, we need to libraries: OpenDBX and the database client library.<br>
<br>EXDI is like OpenDBX but written in Smalltak. It gives you a unified API and then it talks to the database client library. The good thing with EXDI is that you only depends on one library: the database client library. <br>
<br>In SqueakDBX we directly use OpenDBX because of these reasons:<br><br>1) we don't have man power to code all that in Smalltalk for all backends<br>2) OpenDBX seems to be fast (although maybe we get the same speed if it were implemented in Smalltalk)<br>
3) Because usually, if you already depends on one library, it doesn't really make a difference to depend on two. <br><br>Now, what would really make a difference is to have everything implemented in Smalltalk and don't depend in any external library. But as said, we are not mainstream, so for not open-source projects we have to deal with the drivers they give us.<br>
<br>Cheers<br><br>Mariano<br><br><div class="gmail_quote">On Sun, May 22, 2011 at 5:15 PM, Mariano Martinez Peck <span dir="ltr"><<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Ok....after loading the Parcel OracleEXDI and browsing the class OracleInterface, I can guess they use FFI to talk to OCI.<br><br>Example:<br><br>OCIBindByName: stmtp with: bindp with: errhp with: placeholder with: placeh_len with: valuep with: value_sz with: dty with: indp with: alenp with: rcodep with: maxarr_len with: curelep with: mode<br>
<C: sword OCIBindByName(OCIStmt * stmtp, OCIBind * * bindp, OCIError * errhp, const OraText * placeholder, sb4 placeh_len, void * valuep, sb4 value_sz, ub2 dty, void * indp, ub2 * alenp, ub2 * rcodep, ub4 maxarr_len, ub4 * curelep, ub4 mode)><br>
^self externalAccessFailedWith: _errorCode<br><br><br>Cheers<br><font color="#888888"><br>Mariano</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Sun, May 22, 2011 at 5:10 PM, Mariano Martinez Peck <span dir="ltr"><<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br><div class="gmail_quote"><div>On Sun, May 22, 2011 at 5:01 PM, Carlos Crosetti <span dir="ltr"><<a href="mailto:carlos.crosetti@mostar.com.ar" target="_blank">carlos.crosetti@mostar.com.ar</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#ffffff">
<div><font face="Arial" size="2">Thans Mariano, I forgot SquakDBX had a solution.
Regarding the native client I mean a client that is fullt writen in Smaltalk
code. Do uou know if the Cincom VisialWorks EXDI cllient to Oracle is
native too?</font></div></div></blockquote></div><div><br>No, that should not be possible. Oracle is not open-source, so you don't know how to implement the library. Ok, I open a socket and then what?<br>I don't know<font face="Arial" size="2"> Cincom VisialWorks EXDI cllient to Oracl</font>e but I guess it talks by FFI or something like that to the Oracle C client library.<br>
<br>Alan, can you tell us if it is like that? Otherwise, I don't understand ;)<br> <br><br><br></div><div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div bgcolor="#ffffff"><div><div></div><div>
<blockquote style="padding-right:0px;padding-left:5px;margin-left:5px;border-left:#000000 2px solid;margin-right:0px">
<div style="font:10pt arial">----- Original Message ----- </div>
<div style="background:#e4e4e4;font:10pt arial"><b>From:</b>
<a title="marianopeck@gmail.com" href="mailto:marianopeck@gmail.com" target="_blank">Mariano
Martinez Peck</a> </div>
<div style="font:10pt arial"><b>To:</b> <a title="carlos.crosetti@mostar.com.ar" href="mailto:carlos.crosetti@mostar.com.ar" target="_blank">Carlos Crosetti</a> </div>
<div style="font:10pt arial"><b>Cc:</b> <a title="esug.gsoc.adm2010@gmail.com" href="mailto:esug.gsoc.adm2010@gmail.com" target="_blank">esug.gsoc.adm2010@gmail.com</a>
</div>
<div style="font:10pt arial"><b>Sent:</b> Sunday, May 22, 2011 9:35 AM</div>
<div style="font:10pt arial"><b>Subject:</b> Re: ideas for Smalltak GSoC
2011</div>
<div><br></div>Carlos, you have SqueakDBX/GlorpDBX for exactly that. What you
mean by "<font face="Arial" size="2"> native Oracle client</font>" ? It is
NOT possible to have a smalltalk driver for Oracle as there is for PostgreSQL
because Oracle is not open-source and you don't know the protocol. So, you
have to use the drivers they give you. <br><br>Cheers<br><br><br>
<div class="gmail_quote">On Sun, May 22, 2011 at 1:35 AM, Carlos Crosetti <span dir="ltr"><<a href="mailto:carlos.crosetti@mostar.com.ar" target="_blank">carlos.crosetti@mostar.com.ar</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">
<div bgcolor="#ffffff">
<div><font face="Arial" size="2">Hi, as Glorp benefits from having a native
PostgreSQL client, as a Smalltalk developer I want to have a native Oracle
client to seamlessly migrate back and froth from PortgreSQl to Oracle and in
the opposite direction.</font></div>
<div><font face="Arial" size="2"></font> </div><font color="#888888">
<div><font face="Arial" size="2">Carlos
Crosetti</font></div></font></div></blockquote></div><br><br clear="all"><br>--
<br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br></blockquote></div></div></div>
</blockquote></div></div><div><div></div><div><br><br clear="all"><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>