readme: translationfixes
This commit is contained in:
parent
c61dbfe31d
commit
e3df066c3a
1 changed files with 6 additions and 6 deletions
12
README.md
12
README.md
|
@ -1,17 +1,17 @@
|
||||||
Idea
|
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.
|
This query language is SQL-injection-safe.
|
||||||
Only expencive queries can slow down your machine.
|
However, expensive queries can slow down your machine.
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
=====
|
=====
|
||||||
|
|
||||||
Easy query in ruby:
|
Example: An easy query in ruby:
|
||||||
User is a AR-Model and has a column username.
|
User is a ActiveRecord-Model and has a column username.
|
||||||
We want to find all users which has the username "auser".
|
We want to find all _users_ _where_ _username_ = _"auser"_.
|
||||||
|
|
||||||
require 'smql'
|
require 'smql'
|
||||||
|
|
||||||
|
@ -22,6 +22,6 @@ In Rails:
|
||||||
|
|
||||||
SmqlToAR.to_ar User, params[:smql]
|
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'
|
gem 'smql'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue