Insert
Super simple way to insert rows into a database.
Currently only supports postgres.
Currently uses prepared statements.
Installation
Add this line to your application's Gemfile:
gem 'insert'
And then execute:
$ bundle
Or install it yourself as:
$ gem install insert
Usage
insert = Insert.new pg_connection_object
insert.insert :dogs, name: 'jerry'
Contributing
- Fork it ( https://github.com/[my-github-username]/insert/fork )
- 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 a new Pull Request