8000 Update README.md · ratajs/SuperSQL@87aad7d · GitHub
[go: up one dir, main page]

Skip to content

Commit 87aad7d

Browse files
authored
Update README.md
1 parent f523bd4 commit 87aad7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ Here is list of all SuperSQL flags:
154154
$ssql->read("users", $ssql->cond()->eq("username", "nickname")->gte("sign_up_time", time() - 3600));
155155

156156
//Use arrays to differentiate string values from column names and to specify more alternatives, the COND_OR flag is also supported
157-
//This will select users that have username either "ratajs" or "admin" or that have username "RatajS"
157+
//This will select users that have username either "ratajs" or "admin" or that have nickname "RatajS"
158158
$ssql->read("users", $ssql->cond()->eq("username", ["ratajs", "admin"])->eq("nickname", ["RatajS"], SQ::COND_OR));
159159

160160
//->not() negates the condition, this will select users with usernames other than admin
161161
$ssql->read("users", $ssql->cond()->eq("username", ["admin"])->not());
162162

163-
//It can also add another condition, this will select user that don’t have any nickname and with username other that "admin" or "root".
163+
//You can also add another condition, this will select users that don’t have any nickname with username other than "admin" or "root".
164164
$ssql->read("users", $ssql->cond()->eq("nickname", [""])->not($ssql->cond()->eq("username", ["admin", "root"])));
165165

166166
//Supported condition functions: ->eq(), ->lt(), ->gt(), ->lte(), ->gte(), ->like() and ->between()

0 commit comments

Comments
 (0)
0