Creation/Dev/Script/Server/TSQLRequest: Difference between revisions
From Graal Bible
(we need more documentation :[) |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:Scripting Reference]] | |||
{{Template:Script_Object}} | {{Template:Script_Object}} | ||
Revision as of 19:31, 5 April 2010
This article is information on a script object - a pre-defined type of variable with its own set of static variables and functions. It is intended for use with the GS2 scripting language.
Variables
Name | Type | Description |
affectedrows | integer (read only) | |
completed | boolean (read only) | true if the SQL query has completed |
error | string (read only) | error (if any) returned from the SQL query |
lastinsertid | integer | the rowid of the last inserted row |
rows[] | array | rows returned (see onReceiveData event) |
Events
onReceiveData - triggered when data is received; data is in the rows[] variable