Code Monkey home page Code Monkey logo

Comments (6)

findchris avatar findchris commented on June 28, 2024 3

👍 I like this for debugging. Nice suggestion.

from activerecord-import.

zdennis avatar zdennis commented on June 28, 2024

@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.

zdennis avatar zdennis commented on June 28, 2024

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.

mathieujobin avatar mathieujobin commented on June 28, 2024

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.

breathe avatar breathe commented on June 28, 2024

Love this idea -- has this been implemented?

from activerecord-import.

jkowens avatar jkowens commented on June 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.