Project

cubrid

0.01
No release in over 3 years
Low commit activity in last 3 years
This extension is a Ruby connector for CUBRID Database.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

cubrid-ruby¶ ↑

Description¶ ↑

This is a Ruby Driver and ActiveRecord Adapter for CUBRID Database. The latest version of CUBRID Ruby driver can be found at:

ftp.cubrid.org/CUBRID_Drivers/Ruby_Driver/

Installation¶ ↑

1. cd ext/
2. ruby extconf.rb
3. make install

Gem Installation¶ ↑

Windows:
> gem install cubrid

Linux:
$ sudo -E gem install cubrid

Features/Dependencies¶ ↑

  • Cross-platform

  • Compatible with CUBRID 11.0

  • Compatible with Ruby 1.9 or higher

Synopsis¶ ↑

Use Case:

require 'cubrid'

#1: @con = Cubrid.connect('dbname')
#2: @con = Cubrid.connect('dbname', 'host', 'port', 'username', 'password')
@con = Cubrid.connect('demodb', 'localhost', '30000', 'public', '')

puts @con.server_version

if @con
 sql = "SELECT * FROM event"
 stmt = @con.prepare(sql)
 stmt.execute

 while row = stmt.fetch

puts “Record #{row}: #{row}”

 end
else
 puts "Connection could not be established"
end