dbPoll
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function checks the progress of a database query.
Note
If a column contained a number it is returned as a number, this includes things which were stored as string but are numbers such as "1" would be returned as 1.
Important
It is strongly recommended to use this function in callback, as presented in "This example shows how to obtain data without server freeze."
Syntax
dbPoll ( )Code Examples
server
This example waits until a result is ready:
local result = dbPoll ( qh, -1 )