From b5d72b3a76df4918c009be94a3bc95abb2d04674 Mon Sep 17 00:00:00 2001 From: Blake Gentry Date: Mon, 12 Feb 2018 19:14:41 -0800 Subject: [PATCH] fix readme usage for where_pouch to include pouch name --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4262cf5..40140be 100644 --- a/README.md +++ b/README.md @@ -310,11 +310,11 @@ class User < Sequel::Model end # match on multiple fields -User.where_pouch(bff: User[name: 'georgia'], favorite_color: 'goldenrod').all +User.where_pouch(:preferences, bff: User[name: 'georgia'], favorite_color: 'goldenrod').all # match on multiple values -User.where_pouch(favorite_color: [ 'gray', 'dark gray', 'black' ]).all +User.where_pouch(:preferences, favorite_color: [ 'gray', 'dark gray', 'black' ]).all # check for nil value (or absence of key) -User.where_pouch(bff: nil).all +User.where_pouch(:preferences, bff: nil).all ``` Note that you can speed up your queries considerably by adding an