You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As planned with the release of v1.9.0, all deprecated exports have been removed. There has been more than two months notice about these changes, so if you have resources that aren't modified then you can either make the changes yourself, or wait before updating.
You can continue using exports, however most of them have been renamed.
All exports with the Sync suffix are now called with _async.
For less confusion between mysql-async and ghmattimysql, both fetch and execute are replaced with query.
Quick samples
localresult=MySQL.query.await('SELECT * FROM users')
print(result[1].firstname)
localresult=MySQL.Sync.fetchAll('SELECT * FROM users')
print(result[1].firstname)
MySQL.query('SELECT * FROM users', function(result)
print(result[1].firstname)
end)
MySQL.Async.fetchAll('SELECT * FROM users', function(result)
print(result[1].firstname)
end)
constresult=awaitexports.oxmysql.query_async('SELECT * FROM users')console.log(result[0].firstname)exports.oxmysql.query_async('SELECT * FROM users').then((result)=>{console.log(result[0].firstname)})exports.oxmysql.query('SELECT * FROM users',(result)=>{console.log(result[0].firstname)})
The text was updated successfully, but these errors were encountered:
As planned with the release of v1.9.0, all deprecated exports have been removed. There has been more than two months notice about these changes, so if you have resources that aren't modified then you can either make the changes yourself, or wait before updating.
Resources should be using @oxmysql/lib/MySQL.lua
@mysql-async/lib/MySQL.lua
Refer to our documentation for usage.
JavaScript users
Sync
suffix are now called with_async
.query
.Quick samples
The text was updated successfully, but these errors were encountered: