Wendy Smoak wrote:
> Is anyone else interested in Rails?  http://www.rubyonrails.org/
> 
> For me, it's fun to play with, but I figured the chances of it ever
> talking to UniData were slim to none.  Then again...
> http://alphaworks.ibm.com/tech/db2onrails
> 
> Maybe we will see U2 on Rails one day. :)

There was a discussion on this in comp.databases.pick a couple months ago.
Here was the query and my response which not surprisingly dove-tails
exactly with the recent inquiry about Java and Ajax:


"jim paul" wrote: 
>Does anyone know of any Multivalue database that is accessible from the 
>Ruby programming language? 

Response from Tony:

[Preface: All I know about Ruby and Rails comes from reading websites] 

It seems there are a few ways to get from Ruby (w/wo Rails) into MV.  It's
probably better to start with which MV platform you need to get into, what
OS the DBMS is on, whether you have or want Windows or *nix in the mix,
etc. 

Have a look at using the SOAP interface.  You can setup any number of
end-points so that the MV access and the Ruby client are completely
separate.  This opens you up to other tools in our market like UO, 
Object, mv.NET, D3 Class Library, etc. 

You can make an HTTP call through any of the popular web interfaces to MV.
See demos I did years ago for getting into D3 with FlashCONNECT - the same
concepts used for VB, Java, Flash, and other UI technologies applies to
Ruby: 
http://flashconnect.rainingdata.com/fcdemos/index.html 

You can also do operations through the file system: 1) Write data to the
host OS. 2) Used the system() function to invoke an MV process. 3) Read the
resulting data back from the file system. 

You could consider implementing a ConnectionAdapter for your particular MV
platform.  It won't be compliant with the Relational norm but you'll have a
standard wrapper upon which you and others can 
build. 


Related, personally I'd create a generic mvConnection wrapper and then
start building connectivity into there.  You can then build upon this or
swap out your own implementation with what someone else comes up with
later.  This also fits the MVC paradigm of Rails, where the connectivity to
the DBMS is abstracted from the UI and app logic. 


If you'd like for me to write an interface from Ruby for your MV platform,
we can talk but be prepared for an invoice that details 80% research and
20% coding.  You/we can Open Source whatever I write. 

Good Luck. 
Tony 
TG@ removethisNebula-RnD.com 
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to