nut.db.query - brianhang/nutscript2 GitHub Wiki
Description
nut.db.query(query, callback)
This server function runs a regular query.
Parameters
| Name | Description |
|---|---|
query |
The query to execute. |
callback |
An optional function that is called after the query is finished. The only parameter is result, which is the result of the query. If result is nil, then an error occurred. |
Side Effects
- An query is ran on the database.