function module:GetDatabase(sheet)
local database = {}
function database:PostAsync(key, value)
return doPost(sheet, key, value)
end
function database:GetAsync(key)
return doGet(sheet, key)
end
return database
end
So, from my understanding, whenever PostAsync() is called, doPost is returned, and whenever GetAsync() is called, doGet is returned? Am I correct in this understanding?
Also, functions are being called on the table? This code is confusing me for some reason.

1 comment
To clarify: this is someone else's code that I'm trying to learn from. I'm sure you figured that out, though.