Would be cool if you add feature from Mysql Async:
vSql.Async.execute
You pass Insert statement and it returns ID of inserted elemenet
Would be cool if you add feature from Mysql Async:
vSql.Async.execute
You pass Insert statement and it returns ID of inserted elemenet
Please read API section.

This happens the first time after i put vSql on our server. I havent changed or altered any scripts before putting it . So i thought it might be vSql.
Currently when server is started, i get this error:
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
SCRIPT ERROR in tick: System.NullReferenceException: Object reference not set to an instance of an object.
When I restart it, sometimes I get those errors and sometime I dont.
Getting this error quite often too:
SCRIPT ERROR in reference call: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
MySQL 3.2.0
.transaction...51 ms
.execute...49 ms
.fetchScalar...50 ms
.fetchAll...52 ms
vSql 1.3
.transaction...51 ms
.execute...52 ms
.fetchScalar...51 ms
.fetchAll...53 ms
Few quick questions;
And just to verify; if I replace all the Mysql.Ready and if a resource uses MySQL.Sync.* method will I need to edit them to work with vSql.Async ?
Hi,
Are you able to expand on #1?
This resource is using to work with database.
It has nothing to do with inventory, player etc.
If you donât understand the difference - you donât need it.
Could you find the exact line of code which produces this error, please?
Fixed it, I tried to convert mysql.sync hehe
Binaries: https://github.com/warxander/vSql/releases/tag/v1.4
Is vSql compact. with onesync?
Yes (5 ch)
So just leave MySQL.Sync methods alone ? Iâm just converting ESX to use vSQL
No, this resource doesnât support MySQL.Sync methods.
You need to remove them completely, as they greatly affects your server performance.
So with new version of vSync i need to replace all of my triggers on server side and resource lua?
Should i replace MySql.Sync = vSql.Async or only Mysql.Async = vSql.Async?
You canât replace synchronous methods with async ones, because they have different behavior.