Comments (9)
Hi @praveen-db2 the PR that removed the adapter explained that it was removed because the adapter was unmaintained at the time. However, there's nothing about that change that doesn't allow the ibm_db adapter to be used. There are many database adapters not baked directly into Rails. Without knowing what problems you're facing, we can't advise how to fix the issue, but it is likely the ibm_db adapter is missing something important or your customers are using Rails versions that your adapter doesn't support.
from rails.
Hi @eileencodes thanks for your immediate reply.
Please look at this ticket ibmdb/ruby-ibmdb#164, it will help you understand problem.
from rails.
You can just do "rails new my-app" then manually switch to your DB2 adapter afterwards. Or you can use a Rails template to do this. But out of the box, Rails is committed to only maintaining three default options: sqlite, PostgreSQL, mysql. Every other database can continue to integrate using the adapter setup as always 👍
from rails.
@dhh you said "Or you can use a Rails template to do this." Can I know how it can be done. Appreciate your reply.
from rails.
https://guides.rubyonrails.org/rails_application_templates.html
from rails.
The comment that only two databases are supported isn't strictly true. The main problem that we as Db2 users face is the lack of support for Db2 in the following two places in the railties gem -
railties-7.1.2/lib/rails/generators/rails/app/templates/config/databases
railties-7.1.2/lib/rails/generators/database.rb
If you look at those you'll find the list is much longer than the three mentioned -
JDBC_DATABASES = %w( jdbcmysql jdbcsqlite3 jdbcpostgresql jdbc )
DATABASES = %w( mysql trilogy postgresql sqlite3 oracle sqlserver ) + JDBC_DATABASES
Similar list from the set of template YAML files.
It is all very well to say "you can just add those manually", as I had to do in the past.
But to remove the ibm_db driver as "unsupported", leaving behind a bunch of other proprietary drivers, is hardly equitable. The Rails driver from IBM is being supported actively by IBM (Praveeen above being one of the developers).
So what I, as a Db2 user, would like to see is the Db2 links put back into these two locations as they once were.
Phil Nelson
from rails.
But to remove the ibm_db driver as "unsupported", leaving behind a bunch of other proprietary drivers, is hardly equitable. The Rails driver from IBM is being supported actively by IBM
It looks like there has been a lot of development in the past year, but at the time the PR was merged (2020) the most recent release of ibm_db
was 4.0.0
and it did not support Rails 5.2 which was released in 2018.
from rails.
Yeah, I do actually think we should eject the rest of the proprietary DBs on that list as well. Along with the JDBC versions. Rails will maintain for the 3 open source DBs we support, and then everything else can bring its own adapter by hand or rails application template.
from rails.
For reference, there is an adapter for oracle which is pretty well maintained.
from rails.
Related Issues (20)
- PostgreSQL Apache AGE Rails (GraphDB driver questions / problems) HOT 6
- s
- Release 7.0.8.2 contains broken trix.css HOT 2
- Queries generated incorrectly in class methods HOT 2
- Order of operations for saving nested associations has changed in Rails v7.2 with automatically_invert_plural_associations enabled HOT 2
- rescue_from not working with subscribed method on ActionCable channel HOT 2
- Production rails server does not boot if skipping action cable in Rails 8.0.0.alpha HOT 2
- Generate Migration - Rename Table HOT 6
- Rails 7.1 Transactional tests, threaded code and schema caching can cause deadlocks HOT 1
- /Users/amol/.rvm/gems/ruby-2.5.1/gems/activerecord-5.0.2/lib/active_record/connection_adapters/mysql2_adapter.rb:68: [BUG] Segmentation fault at 0x94000f78d65f0300 ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin23] HOT 1
- Support enum in tableless model HOT 4
- `ActiveStorage::Attachment` - Unhandled case where `named_variants` can be `nil`
- `ActiveSupport::BroadcastLogger` with `ActiveSupport::TaggedLogging` throws `no implicit conversion of String into Integer (TypeError)` HOT 2
- Guides: Explain reset_column_information in Chapter "Migrations and Seed Data"
- One of `ApplicationTests::ConfigurationTest` fails with sqlite3 gem that bundles sqlite v3.46.0 HOT 3
- Add a datetime_local method on Time and DateTime classes - typical rails convenience HOT 1
- Deferred route drawing causes problems with some tests
- Incorrect documentation for authenticate_or_request_with_http_token HOT 1
- Regression in URL generation in Rails 7.1 HOT 12
- ActionCable tests fail when encrypted cookie is set with options
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rails.