Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/damulhan/activerecord-cubrid2-adapter
Cubrid database connector for ruby, and active_record, based on cubrid gem (unofficial)
https://github.com/damulhan/activerecord-cubrid2-adapter
cubrid database-driver ruby-gem ruby-on-rails
Last synced: 3 months ago
JSON representation
Cubrid database connector for ruby, and active_record, based on cubrid gem (unofficial)
- Host: GitHub
- URL: https://github.com/damulhan/activerecord-cubrid2-adapter
- Owner: damulhan
- License: mit
- Created: 2022-09-20T07:57:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-23T19:05:15.000Z (7 months ago)
- Last Synced: 2024-09-30T09:41:40.040Z (3 months ago)
- Topics: cubrid, database-driver, ruby-gem, ruby-on-rails
- Language: Ruby
- Homepage:
- Size: 130 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# activerecord-cubrid2-adapter
Cubrid database connector for ruby, and active_record, depends on 'cubrid' gemDESCRIPTION
-----------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
------------```ruby
# 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:
```bash
gem install activerecord-cubrid2-adapter
```### Database connection
In Rails application `config/database.yml` use 'cubrid2' as adapter name, e.g.
```yml
development:
adapter: cubrid2
host: localhost
database: testdb
username: user
password: secret
```EXAMPLE
-----Check test_activerecord.rb in the tests directory.
BUILDING GEM
-----```bash
gem install rake-compiler
rake build# OR
gem build activerecord-cubrid2-adapter.gemspec
```LINKS
-----* Active Record – Object-relational mapping in Rails: https://github.com/rails/rails/tree/main/activerecord
* Cubrid Ruby GEM: https://github.com/CUBRID/cubrid-ruby
* Cubrid Homepage: https://www.cubrid.org