mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 22:21:51 +00:00
Update index.md
This commit is contained in:
1 parent
8e7be45e8e
commit
0f364c1af6
1 file changed
+3
-4
@@ -12,13 +12,12 @@ TODO
|
||||
|
||||
Every executed query is being prepared and stored into cache for faster performance using prepared statements. These statements are also being sanitized from vulnerable SQL injection and accepts two types of parameters:
|
||||
|
||||
- Unnamed
|
||||
```lua
|
||||
... 'SELECT * FROM `users` WHERE `identifier` = ? AND `group` = ?', { playerIdentifier, playerGroup } ...
|
||||
...'SELECT * FROM `users` WHERE `identifier` = ? AND `group` = ?', { playerIdentifier, playerGroup } ...
|
||||
```
|
||||
- Named
|
||||
|
||||
```lua
|
||||
... 'SELECT * FROM `users` WHERE `identifier` = :id AND `group` = :group', { id = playerIdentifier, group = playerGroup } ...
|
||||
...'SELECT * FROM `users` WHERE `identifier` = :id AND `group` = :group', { id = playerIdentifier, group = playerGroup }
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Reference in new issue
Block a user