Giter VIP home page Giter VIP logo

cubrid-ruby's Introduction

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 10.2.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
Author

NHN Corp. <[email protected]>

Copyright

Copyright © 2010 Search Solution Corporation

License

Ruby’s

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.