Creation/Dev/Script/Server/TSQLRequest

From Graal Bible
Revision as of 23:40, 3 August 2009 by Cbk1994 (talk | contribs) (we need more documentation :[)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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