PowerRuby CE2 (EN)

PowerRuby Community Edition 2 was released on October 20, 2018. It is in fact the fusion of Developer Edition and Community Edition: the component covered by license key (which characterized the Developer Edition) has thus become part of the packaging of the CE2 version as option 1. This option allows the use of a gem (so called the additional modules in Ruby jargon) that allows access to DB2. The grace period is only 7 days but – for registration – you can receive a license key valid 7 years from the date of release (so until October 20, 2025).

The entire PowerRuby project is the result of an investment by the British company Dancerace Ltd to explore new possibilities for the use of IBM i architecture in the field of application development. In this sense, the heart of the operation was to implement the extensions aimed at integration to db2. I will just point out three aspects of this integration here.

The first aspect is Unicode. All web development allows you to use UTF-8 encoding uniformly, but problems can occur when you access the database. One approach would be to create all tables with text fields defined to handle Unicode. In this way we would not have enhanced a feature of DB2: DB2 for IBM i is able to convert the encoding to write and read -selectively for each field – without imposing anything on the application. It was therefore a question of offering in the definition of the fields (the so-called “migrations” of Rails) the possibility of indicating field by field a specific CCSID: and that is what we did.

The second aspect is the integration of foreign key support into the elegant logic offered by Rails’ Active Record. All definition operations are borne by the middleware Rails which also adopts here the famous concept CoC (Convention-over-Configuration)

The third very elegant aspect (for cleaning the application code) is having integrated the transaction support offered by Active Record. Multiple actions on the database can then be collected within a single Unit-of-Work with clear syntax.

The starting point to delve into is the official documentation.

Support (and license key request) is carried out through the support@powerruby.com address.

Enjoy PowerRuby CE2!

Related Posts
DB2 for i SQL – String Manipulation – POSSTR-LOCATE-LOCATE_IN_STRING (EN)

Introduction Often, in our applications, we need to work with text strings, and DB2 SQL can come in very useful Read more

DB2 for i – FAQ & Howtos (EN)

DB2 Database and SQL ... maybe the most important things on IBM i platform: here's a collection of FAQs, tips Read more

IBM i 7.4 Announcement (En)

Comes directly with the Easter egg this IBM announcement for the news of the IBM i 7.4 version, iNext version Read more

Generated Always Columns (EN)

Introduction "Generated Always Column": are columns, table fields, filled by DB2 engine: something like columns with a default value but Read more

Recent Posts

ACS Access Client Solution 1.1.9.5

Early April saw the release of the "Spring Version" of ACS Access Client Solution, version 1.1.9.5 Interesting new features especially…

1 day ago

Tim Rowe and Scott Forstie for CEC 2024 – Milan

If the packed agenda of sessions at Common Europe Congress 2024, June 3-6 Milan, wasn't enough for you, here's another…

1 day ago

Code for IBM i 2.10.0 – Debug IBM i App with Visual Studio Code

Debugging functions with Visual Studio Code have been available for some time but this new version 2.10.0 simplifies the handling…

3 days ago

ObjectConnect over TCP/IP

Two and a half years after my post Transferring objects with ObjectConnect and Enterprise Extender, I finally got around to…

4 days ago

SQL: SELECT with “superpowers”

With a little trick even a simple SELECT statement can execute any system command! Let's see how to do that...

5 months ago

NetServer for everyone – part 5

A mini-serial guide to configuring, managing, using, and troubleshooting the IBM i NetServer

1 year ago