Comments (7)
I actually made it work with that fork: https://github.com/kwent/activerecord6-redshift-adapter and tested in a production environment 🎉
from activerecord5-redshift-adapter.
Also looking for a suitable Redshift adapter for ActiveRecord 6.0.0. Does anyone know if there's been any effort to producing a compatible adapter yet? Blocked on upgrading atm.
from activerecord5-redshift-adapter.
This looks promising - https://github.com/iamdbc/activerecord6-redshift-adapter
from activerecord5-redshift-adapter.
Seeing
undefined method `preparable=' for #<Arel::Visitors::PostgreSQL:0x00007f6080954d80>
with https://github.com/iamdbc/activerecord6-redshift-adapter
from activerecord5-redshift-adapter.
@kwent - I'm still running into adapter compatibility issues that were exposed when attempting to use Rails migrator tasks against our Redshift DB. I've been fleshing them out as I go here:
https://github.com/booleanbetrayal/activerecord6-redshift-adapter/tree/more_activerecord-6_fixes
Currently hitting the following issue though, writing timestamps:
PG::InvalidDatetimeFormat: ERROR: invalid input syntax for type timestamp: "#<ActiveRecord::Relation::QueryAttribute:0x00007f9d6bcb1aa0>"
~/Development/GitHub-Forks/activerecord6-redshift-adapter/lib/active_record/connection_adapters/redshift_adapter.rb:466:in `async_exec'
~/Development/GitHub-Forks/activerecord6-redshift-adapter/lib/active_record/connection_adapters/redshift_adapter.rb:466:in `block in exec_no_cache'
~/.rvm/gems/ruby-2.6.3@back_royal/gems/activerecord-6.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:707:in `block (2 levels) in log'
~/.rvm/gems/ruby-2.6.3@back_royal/gems/activerecord-6.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:706:in `block in log'
~/.rvm/gems/ruby-2.6.3@back_royal/gems/activesupport-6.0.0/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
~/.rvm/gems/ruby-2.6.3@back_royal/gems/activerecord-6.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:697:in `log'
~/Development/GitHub-Forks/activerecord6-redshift-adapter/lib/active_record/connection_adapters/redshift_adapter.rb:466:in `exec_no_cache'
~/Development/GitHub-Forks/activerecord6-redshift-adapter/lib/active_record/connection_adapters/redshift_adapter.rb:456:in `execute_and_clear'
~/Development/GitHub-Forks/activerecord6-redshift-adapter/lib/active_record/connection_adapters/redshift/database_statements.rb:159:in `exec_query'
~/Development/GitHub-Forks/activerecord6-redshift-adapter/lib/active_record/connection_adapters/redshift/database_statements.rb:191:in `exec_insert'
~/.rvm/gems/ruby-2.6.3@back_royal/gems/activerecord-6.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:162:in `insert'
~/.rvm/gems/ruby-2.6.3@back_royal/gems/activerecord-6.0.0/lib/active_record/connection_adapters/abstract/query_cache.rb:22:in `insert'
from activerecord5-redshift-adapter.
Actually, I just fixed this issue and a few others and opened a pull request to your repo @kwent . Let me know if you'd rather not maintain it, and I can stand a repo up from a fork of this one ^.
from activerecord5-redshift-adapter.
Closing this issue since we are now going to iterate on https://github.com/kwent/activerecord6-redshift-adapter
from activerecord5-redshift-adapter.
Related Issues (16)
- Active Record 5.1 support HOT 2
- (uninitialized constant ActiveRecord::ConnectionAdapters::RedshiftAdapter::PGconn HOT 3
- [FIXED] NoMethodError: undefined method `binds_from_relation' HOT 4
- facing issue of PG.conn load error HOT 1
- "PG::ConnectionBad: connection is closed" on Rails 5.2 HOT 2
- ArgumentError - wrong number of arguments (given 2, expected 0..1) on Rails 5.2.1 HOT 1
- ArgumentError: wrong number of arguments on Rails 5.2.2 HOT 3
- Fetching Primary Key as nil after create
- 'text' is not a valid data type with Redshift HOT 1
- Integers being returned as strings
- Connection#reset! throws an error
- Version pegged to activerecord ~5.0.0 --> is there a reason it is incompatible with 5.1? HOT 3
- how to run unit tests? HOT 3
- Cannot find the right name to load the gem HOT 3
- Deprecation for PGconn HOT 1
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 activerecord5-redshift-adapter.