From 6f46b2e6f8730dba4adf9871d31e87f58afbddfc Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Wed, 18 Aug 2021 14:12:38 +1000 Subject: [PATCH] Create single.md --- single.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 single.md diff --git a/single.md b/single.md new file mode 100644 index 0000000..de1dd98 --- /dev/null +++ b/single.md @@ -0,0 +1,14 @@ +# Single +Execute a query and return the results of the first row. + +### Usage +```lua +exports.oxmysql:single(query, {}, function(result) + print(result['column']) +end) +print('I will be printed before query result') +``` +```lua +local result = exports.oxmysql:singleSync(query, {}) +print(result['column']) +```