-
-
Notifications
You must be signed in to change notification settings - Fork 0
Module: Account
Аниса edited this page Dec 16, 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 (Native sync has to be disabled) or work in correlation with default accounts otherwise (Native sync has to be enabled). Refer for sync state's modification.
local table: result, table: arguments = dbify.module.account.fetchAll(
table: {
--Conditional datas to be used for the query
{string: columnName, ~: columnValue},
...
},
bool: isSoloFetch, --Enabling this returns only first row of the retrieved result
~: ...arguments
)
local bool: result, table: arguments = dbify.module.account.create(
string: accountName,
~: ...arguments
)
local bool: result, table: arguments = dbify.module.account.delete(
string: accountName,
~: ...arguments
)
local bool: result, table: arguments = dbify.module.account.setData(
string: accountName,
table: {
--Columns to be updated w/ their respective values
{string: columnName, ~: columnValue},
...
},
~: ...arguments
)
local table: result, table: arguments = dbify.module.account.getData(
string: accountName,
table: {
--Columns whose values are to be retrieved
string: columnName,
...
},
~: ...arguments
)