From 1b8b6fd2de72c4f5a64207a6f1eaa3002389b1f7 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sun, 19 Sep 2021 07:03:42 +1000 Subject: [PATCH] Update and rename execute.md to update.md --- execute.md => update.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename execute.md => update.md (63%) diff --git a/execute.md b/update.md similarity index 63% rename from execute.md rename to update.md index 9169249..2714a8a 100644 --- a/execute.md +++ b/update.md @@ -1,14 +1,14 @@ -# Execute +# Update Execute a query and returns the number of affected rows. ### Usage ```lua -exports.oxmysql:execute(query, {}, function(affectedRows) +exports.oxmysql:update(query, {}, function(affectedRows) print('Updated '..affectedRows..' rows') end) print('I will be printed before query result') ``` ```lua -local affectedRows = exports.oxmysql:executeSync(query, {}) +local affectedRows = exports.oxmysql:updateSync(query, {}) print('Updated '..affectedRows..' rows') ```