Creation/Dev/Script/Server/TSQLRequest: Difference between revisions

From Graal Bible
(we need more documentation :[)
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Category:Scripting Reference]]
{{Template:Script_Object}}
{{Template:Script_Object}}
Child of [[TStaticVar]], cannot be directly created by script (use requestsql or requestsql2 methods).


=Variables=
=Variables=

Latest revision as of 06:30, 25 July 2011


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.


Child of TStaticVar, cannot be directly created by script (use requestsql or requestsql2 methods).

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