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']) +```