readme: translationfixes

subqueries
Denis Knauf 2011-09-09 00:02:24 +02:00
parent c61dbfe31d
commit e3df066c3a
1 changed files with 6 additions and 6 deletions

View File

@ -1,17 +1,17 @@
Idea
====
Similar to MQL: SMQL allowes SQL-queries on your database but in a JSON-based language.
Similar to MQL: SMQL allows queries on your database but in a JSON-based language.
This query language is SQL-injection-safe.
Only expencive queries can slow down your machine.
However, expensive queries can slow down your machine.
Usage
=====
Easy query in ruby:
User is a AR-Model and has a column username.
We want to find all users which has the username "auser".
Example: An easy query in ruby:
User is a ActiveRecord-Model and has a column username.
We want to find all _users_ _where_ _username_ = _"auser"_.
require 'smql'
@ -22,6 +22,6 @@ In Rails:
SmqlToAR.to_ar User, params[:smql]
Don't forget to add gem to Gemfile:
Don't forget to add my gem to the _Gemfile_:
gem 'smql'