Skip to content

Module: Account

Tron edited this page Oct 12, 2021 · 34 revisions

━ dbify.account.fetchAll()

@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()

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

━ dbify.account.delete()

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

━ dbify.account.setData()

@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()

@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