Skip to content

Commit 536acb2

Browse files
author
Fredrick Peter
committed
push
1 parent c630c82 commit 536acb2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,18 +332,18 @@ $db->table('users')
332332
]);
333333
```
334334

335-
### Raw
336-
- Allows you to use direct raw `SQL query syntax`
335+
### Query
336+
- Allows you to use direct `SQL query syntax`
337337

338338
- 1 usage
339339
```
340-
$db->raw('SHOW COLUMNS FROM users')->get();
341-
$db->raw('DROP TABLE users;')->execute();
340+
$db->query('SHOW COLUMNS FROM users')->get();
341+
$db->query('DROP TABLE users')->execute();
342342
```
343343

344344
- 2 usage
345345
```
346-
$db->raw('SELECT count(*) FROM users WHERE status=:status');
346+
$db->query('SELECT count(*) FROM users WHERE status=:status');
347347
$db->bind('status', 1);
348348
$db->get();
349349

0 commit comments

Comments
 (0)