Ruby/Informix -


BSD
跨平台
Ruby

软件简介

Ruby/Informix 是 Informix 数据库的 Ruby 语言驱动程序。

示例代码:

db = Informix.connect('stores')  
cur = db.cursor('select * from stock')  
cur.open  
records = cur.fetch_all  
cur.drop # or close, if you want to reopen it later

stmt = db.prepare('insert into state values(?, ?)')  
stmt.execute('CA', 'California')  
stmt.call('NM', 'New Mexico')  
    stmt['TX', 'Texas']