summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorJamie Matthews <[email protected]>2010-11-03 22:45:06 +0000
committerJamie Matthews <[email protected]>2010-11-03 22:45:06 +0000
commite4d6bad6924fa50b8295da971293671ec3122a51 (patch)
tree298353dec414892ed98b44b0bfd7b6b70549cbee /README.markdown
parent86019de1137e5c8ef03b3b6c106c41327654f9a8 (diff)
Add where_not_equal method. Thanks for the suggestion, arcijsg
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index 2c77fa8..461a41a 100644
--- a/README.markdown
+++ b/README.markdown
@@ -102,12 +102,14 @@ These limits are deliberate: these are by far the most commonly used criteria, a
Some support for more complex conditions and queries is provided by the `where_raw` and `raw_select` methods (see below). If you find yourself regularly requiring more functionality than Idiorm can provide, it may be time to consider using a more full-featured ORM.
-##### Equality: `where` and `where_equal` #####
+##### Equality: `where`, `where_equal`, `where_not_equal` #####
By default, calling `where` with two parameters (the column name and the value) will combine them using an equals operator (`=`). For example, calling `where('name', 'Fred')` will result in the clause `WHERE name = "Fred"`.
If your coding style favours clarity over brevity, you may prefer to use the `where_equal` method: this is identical to `where`.
+The `where_not_equal` method adds a `WHERE column != "value"` clause to your query.
+
##### Shortcut: `where_id_is` #####
This is a simple helper method to query the table by primary key. Respects the ID column specified in the config.