-
-
Notifications
You must be signed in to change notification settings - Fork 0
Module: Vehicle
Aviril edited this page Oct 11, 2021
·
22 revisions
dbify.vehicle.fetchAll(callback(result, arguments)
print(toJSON(result))
print(toJSON(arguments))
end, ...)
dbify.vehicle.add(vehicle, callback(vehicleID, arguments)
print(tostring(vehicleID))
print(toJSON(arguments))
end, ...)
dbify.vehicle.delete(vehicleID, callback(result, arguments)
print(tostring(result))
print(toJSON(arguments))
end, ...)
dbify.vehicle.setData(vehicleID, {
--These are vehicle datas to be updated
{dataName1, dataValue1},
{dataName2, dataValue2},
...
}, callback(result, arguments)
print(tostring(result))
print(toJSON(arguments))
end, ...)
dbify.vehicle.getData(vehicleID, {
--These are vehicle datas to be retrieved
dataName1,
dataName2,
...
}, callback(result, arguments)
print(toJSON(result))
print(toJSON(arguments))
end, ...)