PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > [ANN] Ruby/Informix 0.7.0
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
[ANN] Ruby/Informix 0.7.0

Réponse
 
LinkBack Outils de la discussion
Vieux 01/04/2008, 06h16   #1
Gerardo Santana Gómez Garrido
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut [ANN] Ruby/Informix 0.7.0

I'm pleased to announce another release of Ruby/Informix, a Ruby
library for connecting to IBM Informix.

In this release you'll find support for the INTERVAL data type, more
handy methods and more and better documentation with examples, along
with a new web site.

Web site: http://ruby-informix.rubyforge.org/
Documentation: http://ruby-informix.rubyforge.org/doc/

Some examples:

Connecting to a database:

db = Informix.connect('stores')


Inserting records

stmt = db.prepare('insert into state values(?, ?)')
stmt.execute('CA', 'California')


Iterating over a table using a hash (shortcut):

db.each_hash('select * from customers') do |cust|
puts "#{cust['firstname']} #{cust['lastname']}"
end



Changelog follows:

0.7.0 03/31/2008
------------------
New features:
* Experimental support for the INTERVAL data type:
- year_to_month, day_to_fraction, from_months and from_seconds class
methods for creating an Interval object
- +@ and -@ unary operators
- +, * and / operations available with Integer, Rational, Date, Time
and DateTime objects
- methods for returning the respective fields of an Interval object
individually (years, months, days, hours, minutes and seconds)
- to_a method for returning the fields of an Interval object as an array
- methods for converting the Interval object to the given unit, where
apply (to_years, to_months, to_days, to_hours, to_minutes and
to_seconds)
- to_s method for displaying an Interval object as an string according
to ANSI SQL standards
- includes Comparable
* Database#version returns a struct with version information of the database
server.
* Database#each and Database#each_hash shortcut methods for declaring and
opening a cursor in a single step.
Contributed by Reid Morrison <reidmo at gmail>

* Database#execute is not an alias for Database#immediate any more.
It has become a shortcut for preparing and executing a statement in a
single step.
* SequentialCursor includes Enumerable
* Ruby 1.9 compatible
* More and better documentation

Bugs fixed:
* The documentation for class Error was not being recognized by rdoc

Remarks:
* Database.new deprecated in favor of Database.open
* Database#do was removed
* A lot of C code has been reimplemented in Ruby
* Modules and classes have been reorganized
* Database#execute still behaves the same, except that it can also accept
input parameters and return at most one record. Database#immediate is
more efficient though.
--
Gerardo Santana

  Réponse avec citation
Vieux 01/04/2008, 08h05   #2
Venu9955
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Ruby/Informix 0.7.0

Thanks for the information,
Venu 9955

On Apr 1, 10:16am, Gerardo Santana Gómez Garrido
<gerardo.sant...@gmail.com> wrote:
> I'm pleased to announce another release of Ruby/Informix, a Ruby
> library for connecting to IBM Informix.
>
> In this release you'll find support for the INTERVAL data type, more
> handy methods and more and better documentation with examples, along
> with a new web site.
>
> Web site:http://ruby-informix.rubyforge.org/
> Documentation:http://ruby-informix.rubyforge.org/doc/
>
> Some examples:
>
> Connecting to a database:
>
> db = Informix.connect('stores')
>
> Inserting records
>
> stmt = db.prepare('insert into state values(?, ?)')
> stmt.execute('CA', 'California')
>
> Iterating over a table using a hash (shortcut):
>
> db.each_hash('select * from customers') do |cust|
> puts "#{cust['firstname']} #{cust['lastname']}"
> end
>
> Changelog follows:
>
> 0.7.0 03/31/2008
> ------------------
> New features:
> * Experimental support for the INTERVAL data type:
> - year_to_month, day_to_fraction, from_months and from_seconds class
> methods for creating an Interval object
> - +@ and -@ unary operators
> - +, * and / operations available with Integer, Rational, Date, Time
> and DateTime objects
> - methods for returning the respective fields of an Interval object
> individually (years, months, days, hours, minutes and seconds)
> - to_a method for returning the fields of an Interval object as an array
> - methods for converting the Interval object to the given unit, where
> apply (to_years, to_months, to_days, to_hours, to_minutes and
> to_seconds)
> - to_s method for displaying an Interval object as an string according
> to ANSI SQL standards
> - includes Comparable
> * Database#version returns a struct with version information of the database
> server.
> * Database#each and Database#each_hash shortcut methods for declaring and
> opening a cursor in a single step.
> Contributed by Reid Morrison <reidmo at gmail>
>
> * Database#execute is not an alias for Database#immediate any more..
> It has become a shortcut for preparing and executing a statement in a
> single step.
> * SequentialCursor includes Enumerable
> * Ruby 1.9 compatible
> * More and better documentation
>
> Bugs fixed:
> * The documentation for class Error was not being recognized by rdoc
>
> Remarks:
> * Database.new deprecated in favor of Database.open
> * Database#do was removed
> * A lot of C code has been reimplemented in Ruby
> * Modules and classes have been reorganized
> * Database#execute still behaves the same, except that it can alsoaccept
> input parameters and return at most one record. Database#immediate is
> more efficient though.
> --
> Gerardo Santana


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h09.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09460 seconds with 10 queries