-
-
Notifications
You must be signed in to change notification settings - Fork 0
Module: Account
Аниса edited this page Dec 13, 2022
·
34 revisions
This module synchronizes built in MTA accounts w/ MySQL & provides a management interface to integrate w/ your resources.
Module can either be used for custom accounts (Automated sync has to be disabled) or work in correlation with default accounts otherwise (Automated sync has to be enabled). For modifying automated sync's state refer.
local table: result, table: arguments = dbify.account.fetchAll(
table: {
--Conditional datas to be used for the query
{string: columnName, ~: columnValue},
},
~: ...arguments
)
local bool: result, table: arguments = dbify.account.create(
string: accountName,
~: ...arguments
)
local bool: result, table: arguments = dbify.account.delete(
string: accountName,
~: ...arguments
)
local bool: result, table: arguments = dbify.account.setData(
string: accountName,
table: {
--Columns to be updated w/ their respective values
{string: columnName, ~: columnValue},
...
},
~: ...arguments
)
local table: result, table: arguments = dbify.account.getData(
string: accountName,
table: {
--Columns whose values are to be retrieved
string: columnName,
...
},
~: ...arguments
)