U2 Ruby: Ruby integration for IBM UniVerse and UniData
Posted by tom February 8th, 2007
This week a colleague and myself have been working hard to create a Ruby extension which allows Ruby to make RPC calls to UniVerse and UniData (the IBM U2 databases). The module has been dubbed U2, the class UniRPC. It implements the intercall interface, and from that the functions: open, close, opensession, quit, readlist, execute, read, write & delete. Within the c-code it translates the @FM separated records (and readlists) into Ruby Arrays (for easy access). It currently does not translate @VM, @SM & @TM to sub-array structures, but maybe one day…
We’ve also created a ActiveRecord-like class to work with U2 files (tables & records) all in all pretty interesting!!
