Skip to content

Cubrid database connector for ruby, and active_record, based on cubrid gem (unofficial)

License

Notifications You must be signed in to change notification settings

damulhan/activerecord-cubrid2-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

activerecord-cubrid2-adapter

Cubrid database connector for ruby, and active_record, depends on 'cubrid' gem

DESCRIPTION

Cubrid2 ActiveRecord adapter privides Cubrid database from Ruby on Rails applications. Now works with Ruby on Rails 6.0, 7.0 and it is working with Cubrid database versions 9.x to higher.

INSTALLATION

# Use cubrid as the database for Active Record
gem 'cubrid' # cubrid interface gem, based on native CCI C interface

# OR use local build
# git clone https://github.com/CUBRID/cubrid-ruby.git /opt/cubrid/cubrid-ruby
# cd /opt/cubrid/cubrid-ruby
# # goto directory and build cubrid-ruby

# gem 'cubrid', path: '/opt/cubrid/cubrid-ruby'

gem 'activerecord-cubrid2-adapter'

Currently Rails Windows, JRuby is not tested.

Without Rails and Bundler

If you want to use ActiveRecord and Cubrid2 adapter without Rails and Bundler then install it just as a gem:

gem install activerecord-cubrid2-adapter

Database connection

In Rails application config/database.yml use 'cubrid2' as adapter name, e.g.

development:
  adapter: cubrid2
  host: localhost
  database: testdb
  username: user
  password: secret

EXAMPLE

Check test_activerecord.rb in the tests directory.

BUILDING GEM

gem install rake-compiler
rake build

# OR

gem build activerecord-cubrid2-adapter.gemspec

LINKS

About

Cubrid database connector for ruby, and active_record, based on cubrid gem (unofficial)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages