Creation/Dev/Script/Server/TSQLRequest

From Graal Bible
Revision as of 19:31, 5 April 2010 by Cyan3 (talk | contribs)


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