Comments (6)
👍 I like this for debugging. Nice suggestion.
from activerecord-import.
@lancecarlson, thanks for the suggestion. This sounds like a reasonable feature of activerecord-import. If you'd like to take a stab and submit a pull request I'd be happy to review and merge in; otherwise, you'll have to wait for me to get some free time.
from activerecord-import.
I like this idea a lot. I think I'd need to refactor before introducing this as there's not a great way to do this now.
from activerecord-import.
I hit a strange bug after switching from mysql to postgresql. null
is sent as a primary key value. and I'd like to find out where the SQL is being generated. now I am getting this error.
ActiveRecord::StatementInvalid: PG::NotNullViolation: ERROR: null value in column "id" violates not-null constraint DETAIL: Failing row contains (null, ...
any help would be much appreciated.
this feature request could help, that's why I decided to post here, not knowing where else I can get help.
from activerecord-import.
Love this idea -- has this been implemented?
from activerecord-import.
@breathe nope it is still open. Like Zach mentioned above, I don't think the current implementation will make this an easy update, but if you're interested in working on it that would be awesome. I'm thinking an option like :preview_sql
would be my preference vs a new method.
from activerecord-import.
Related Issues (20)
- Inserted Primary IDs not sequential HOT 2
- why import do not return imported ids, when it called in sidekiq worker ? HOT 6
- Allow import of ignored columns - Suggested Feature HOT 1
- Empty ON CONFLICT targets HOT 1
- Question about performance: What are the order of things? HOT 5
- insert with existing association does not seem to work
- NonNull Violation and calling nextval() on sequence_name when primary key is uuid
- Failing imports are incrementing serial_sequence HOT 1
- `@schema_columns_hash` is not cleared by `.reset_column_information`. HOT 8
- alias_attribute causing "specified more than once" error upon import. HOT 6
- Support `trilogy` adapter HOT 7
- Using :on_duplicate_key_ignore option with conflict targets
- import! method is not raising when unique constraint violated while still inserting some records HOT 6
- Model#valid? Returning True For Invalid Records After Import HOT 7
- Ignores no_returning
- Default values not set for non-primary-key uuid columns
- Dropping support for Ruby 2.4 and 2.6 HOT 2
- Cutting a new version of the gem HOT 4
- Error with composite PK HOT 7
- Unable to import recursive HOT 2
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 activerecord-import.