-
-
Notifications
You must be signed in to change notification settings - Fork 0
Glossary: FAQs
Аниса edited this page Dec 13, 2022
·
3 revisions
Yes, its completely a standalone Assetify module built from ground up with heavy testing.
Head over to assetify_library/files/assets/module/DBify_Library/dep/connection.lua
and modify synchronization settings as per your requirements.
syncNativeAccounts = true/false
syncNativeSerials = true/false
DBify's APIs are recommended to be used w/n try
scope to catch exceptions as such indicated below:
--Creates an async environment via Assetify's thread module for API usage
async(function(self)
--Safely execute all our APIs without aborting our main thread
local result = try({
exec = function(self)
--Use all DBify APIs in here inorder to catch exceptions
local tableName = "mytable"
local isTableExisting = dbify.mysql.table.isValid(tableName)
if not isTableExisting then return false end
return dbify.mysql.table.fetchContents(tableName)
end,
catch = function(error)
--Any error in the above handle shall terminate & trigger this catch block
print(error)
return false
end
})
if not result then return false end
print("Query Results:")
iprint(result)
end):resume()