Ingres Ruby Learn

From Ingres Community Wiki

Jump to: navigation, search

Contents

Overview

Ruby is an interpreted scripting language for object-oriented programming which is open source and free. Like Perl, it has excellent support for text files. It runs on multiple platforms including Linux, Unix, Windows and Mac OS.

Ruby is similar to Python in that it provides a transition from the procedural to the object-oriented programming paradigms. Python has functions for procedural and methods for objects and then bridges them. Ruby, on the other hand, is purely object-oriented, but can do procedural things (unlike Smalltalk). Ruby’s syntax and design are heavily influenced by Perl, so Perl programmers should feel comfortable with Ruby. Ruby, in fact, has been touted as a possible Perl replacement. It is unlikely, however, to replace Python because their design philosophies are quite different. Ruby was originally developed around 1993-1995 to provide a true object-oriented language, which the developer felt did not exist in current languages such as Perl and Python.

A lot of the interest in Ruby has come about due to the popular Ruby on Rails project, which provides a programmer-friendly (productive) development environment for database-backed web applications.

Driver Status

The Driver is currently in Alpha status. Feedback welcome.

Platform support

Ingres Releases

This extension has been written to support the following versions of Ingres:

  • Advantage Ingres 2.6
  • Ingres r3 / Ingres 2006
  • Ingres 2006 r2 (9.1.x)
  • Ingres 2006 r3 (9.2.x)

Ruby Releases

This extension has been developed against Ruby 1.8.6.

Operating System Compatibility

The extension should work against any platform where the above Ingres releases are supported. In practice the extension has been developed on Windows XP using Visual Studio .Net 2003 (VC7) and openSuSE 11.0 using GCC 4.x. There has been limited testing on Solaris 10 Sparc. If you find the extension does not work, please log a bug via the project home page with the following information:

  • operating system and patches/service pack installed
  • compiler + version used to build the extension
  • version of Ruby being used
  • version of Ingres being used
  • A description of the expected and actual behaviour

Features Not Included

The following features are currently not included in the Ingres Open Source Ruby interface

  • Only one Ingres connection at a time is supported from an application.
  • Data types not supported are: float4, float8, money, bigint, decimal, and ANSI date/time/timestamp.
  • You can find a list of all the missing features in the Ruby Project Page

On-Line Documentation

The following links provide useful information related to Ruby and Ruby on Rails:

Articles

Articles dealing with the Ingres Ruby Driver and Ruby on Rails adapter and Integration with other technologies can be found at Articles

Examples

Example code can be found in Code Samples.

Presentations

Here are links to webinars that have been previously given. You can download the presentations and webinar replays. Note that replaying any of the webinars requires that you first install the WebEx ARF media player. Of course, you need Adobe Acrobat Reader for PDF files and InfoZip is a nice open source utility for handling ZIP files.

  • No presentations available

Related Presentations

Personal tools
Developing With