GithubHelp home page GithubHelp logo

forklift's People

Contributors

evantahler avatar rahilsondhi avatar rgarver avatar strivedi183 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

forklift's Issues

A MySQL row with a value that has a backslash breaks the SQL insert query

The error message during insert is:

/Users/rahil/Sites/random/forklift/lib/forklift/transports/mysql.rb:253:in `query': You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2012-06-22 21:20:40", "2012-06-22 21:20:40", NULL, 0)' at line 1 (Mysql2::Error)

Here is the data for that row. The broken value is in scraped_email_subject (note the backslashes)

{:id=>67113, :base_listing_id=>63535, :type=>"ApplicationMethod::Scraped", :scraped_email_id=>5778, :scraped_email_subject=>"ATTN: Hiring Manager, INTERN\\", :offsite_url=>nil, :created_at=>2012-06-22 21:20:40 -0700, :updated_at=>2012-06-22 21:20:40 -0700, :override_email=>nil, :screen_offsite_apply=>0}

If I do safe_values(d.values) I get:

"67113, 63535, \"ApplicationMethod::Scraped\", 5778, \"ATTN: Hiring Manager, INTERN\\\", NULL, \"2012-06-22 21:20:40\", \"2012-06-22 21:20:40\", NULL, 0"

I'm playing around with safe_values right now trying to get a solution, just thought I'd give you a heads up @evantahler.

Make compatible with elasticsearch gem - version 2.0.0

I am trying to use this gem in our project however it is locked to version 1 of the elasticsearch gem

 forklift_etl was resolved to 1.0.8, which depends on
      elasticsearch (>= 1.0.0, ~> 1.0)

any idea on how large of a task it is to make this compatible for use with the elasticsearch 2.0.0 version?

make example self-contained

the example project within the gem should be simple, and executable by anyone. This probably involves including some see data (even a mysqldump) within the project and instructions on how to change the config.yml files to work locally.

Use Ruby 1.9 hash syntax where possible

I'm finding about 46 instances of the old 1.8 hash rocket. I propose we use the new hash syntax wherever possible.

Perhaps this should be done after we have a test suite so that we don't break anything by accident.

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.