Experimental abstraction and refactoring of sqlite utility methods from scraperwiki-ruby gem Note: Not all functionality has yet been duplicated, and this may not work for you. Developed and tested on Ruby 1.9.3
Add this line to your application's Gemfile:
gem 'sqlite_magic', :git => 'git@github.com:openc/sqlite_magic.git'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sqlite_magic
TODO: Write usage instructions here
- Allow options to be passed when initializing connection (which will be passed to Sqlite)
- insert_or_update now defers to #save_data when hitting error (which caused a problem when missing field)
- busy_timeout can now be set in options
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request