On Sun, May 22, 2011 at 5:01 PM, Carlos Crosetti <[hidden email]> wrote:
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? I don't know Cincom VisialWorks EXDI cllient to Oracle but I guess it talks by FFI or something like that to the Oracle C client library. Alan, can you tell us if it is like that? Otherwise, I don't understand ;)
-- Mariano http://marianopeck.wordpress.com -- You received this message because you are subscribed to the Google Groups "glorp-group" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. For more options, visit this group at http://groups.google.com/group/glorp-group?hl=en. |
Ok....after loading the Parcel OracleEXDI and browsing the class OracleInterface, I can guess they use FFI to talk to OCI.
Example: 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 <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)> ^self externalAccessFailedWith: _errorCode Cheers Mariano On Sun, May 22, 2011 at 5:10 PM, Mariano Martinez Peck <[hidden email]> wrote:
-- Mariano http://marianopeck.wordpress.com -- You received this message because you are subscribed to the Google Groups "glorp-group" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. For more options, visit this group at http://groups.google.com/group/glorp-group?hl=en. |
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.
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. 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. In SqueakDBX we directly use OpenDBX because of these reasons: 1) we don't have man power to code all that in Smalltalk for all backends 2) OpenDBX seems to be fast (although maybe we get the same speed if it were implemented in Smalltalk) 3) Because usually, if you already depends on one library, it doesn't really make a difference to depend on two. 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. Cheers Mariano On Sun, May 22, 2011 at 5:15 PM, Mariano Martinez Peck <[hidden email]> wrote: Ok....after loading the Parcel OracleEXDI and browsing the class OracleInterface, I can guess they use FFI to talk to OCI. -- Mariano http://marianopeck.wordpress.com -- You received this message because you are subscribed to the Google Groups "glorp-group" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. For more options, visit this group at http://groups.google.com/group/glorp-group?hl=en. |
Free forum by Nabble | Edit this page |