Skip to content

Module: Account

Аниса edited this page Jun 16, 2022 · 34 revisions

━ dbify.account.fetchAll() (Server)

@Objective: Fetches all existing accounts.
dbify.account.fetchAll({
    --These are key datas to be used for the condition query (Optional)
    {key_columnName1, key_columnValue1},
    {key_columnName2, key_columnValue2},
    ...
}, callback(result, arguments)
    print(toJSON(result))
    print(toJSON(arguments))
end, ...)

━ dbify.account.create() (Server)

@Objective: Creates a new account.
dbify.account.create(accountName, callback(result, arguments)
    print(tostring(result))
    print(toJSON(arguments))
end, ...)

━ dbify.account.delete() (Server)

@Objective: Deletes an existing account.
dbify.account.delete(accountName, callback(result, arguments)
    print(tostring(result))
    print(toJSON(arguments))
end, ...)

━ dbify.account.setData() (Server)

@Objective: Sets account datas of a valid account.
dbify.account.setData(accountName, {
    --These are account datas to be updated
    {dataName1, dataValue1},
    {dataName2, dataValue2},
    ...
}, callback(result, arguments)
    print(tostring(result))
    print(toJSON(arguments))
end, ...)

━ dbify.account.getData() (Server)

@Objective: Retrieves account datas of a valid account.
dbify.account.getData(accountName, {
    --These are account datas to be retrieved
    dataName1,
    dataName2,
    ...
}, callback(result, arguments)
    print(toJSON(result))
    print(toJSON(arguments))
end, ...)
Clone this wiki locally