README.md in sql_query-0.6.0 vs README.md in sql_query-0.7.0

- old
+ new

@@ -1,7 +1,6 @@ [![Gem Version](https://badge.fury.io/rb/sql_query.svg)](http://badge.fury.io/rb/sql_query) -[![Dependency Status](https://gemnasium.com/sufleR/sql_query.svg)](https://gemnasium.com/sufleR/sql_query) [![Code Climate](https://codeclimate.com/github/sufleR/sql_query/badges/gpa.svg)](https://codeclimate.com/github/sufleR/sql_query) [![Test Coverage](https://codeclimate.com/github/sufleR/sql_query/badges/coverage.svg)](https://codeclimate.com/github/sufleR/sql_query) [![Build Status](https://travis-ci.org/sufleR/sql_query.svg?branch=master)](https://travis-ci.org/sufleR/sql_query) # SqlQuery @@ -85,10 +84,11 @@ * sql_file_path - it will override default path where gem will look for sql file. ### Methods - **execute** - executes query and returns result data. It accepts boolean argument. When argument is false it will run raw sql query instead of prepared_for_logs. +- **exec_query** - similar to `#execute` but with data returned via `ActiveRecord::Result`. - **explain** - runs explain for SQL from template - **sql** - returns SQL string - **pretty_sql** - returns SQL string prettier to read in console - **prepared_for_logs** - returns sql string without new lines and multiple whitespaces. @@ -139,5 +139,12 @@ 1. Fork it ( https://github.com/[my-github-username]/sql_query/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request + +To run specs, setup Postgres with the following: + +```sql +CREATE DATABASE sqlquery; +CREATE ROLE sqlquery WITH LOGIN; +```