From 0f364c1af6bc93a3846c5ffe724dfb2efcb6ec35 Mon Sep 17 00:00:00 2001 From: Dunak <19434539+dunak-debug@users.noreply.github.com> Date: Tue, 17 Aug 2021 16:20:28 +0200 Subject: [PATCH] Update index.md --- index.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/index.md b/index.md index 22a956a..413e324 100644 --- a/index.md +++ b/index.md @@ -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