6 const string NWNX_SQL =
"NWNX_SQL";
118 NWNXPushString(query);
119 NWNXCall(NWNX_SQL,
"PrepareQuery");
125 NWNXCall(NWNX_SQL,
"ExecutePreparedQuery");
144 NWNXCall(NWNX_SQL,
"ReadyToReadNextRow");
150 NWNXCall(NWNX_SQL,
"ReadNextRow");
156 NWNXCall(NWNX_SQL,
"ReadDataInActiveRow");
157 return NWNXPopString();
164 NWNXPushInt(position);
165 NWNXCall(NWNX_SQL,
"PreparedInt");
169 NWNXPushString(value);
170 NWNXPushInt(position);
171 NWNXCall(NWNX_SQL,
"PreparedString");
175 NWNXPushFloat(value);
176 NWNXPushInt(position);
177 NWNXCall(NWNX_SQL,
"PreparedFloat");
181 NWNXPushObject(value);
182 NWNXPushInt(position);
183 NWNXCall(NWNX_SQL,
"PreparedObjectId");
188 NWNXPushObject(value);
189 NWNXPushInt(position);
190 NWNXCall(NWNX_SQL,
"PreparedObjectFull");
194 NWNXPushInt(position);
195 NWNXCall(NWNX_SQL,
"PreparedNULL");
211 NWNXPushObject(owner);
213 NWNXCall(NWNX_SQL,
"ReadFullObjectInActiveRow");
214 return NWNXPopObject();
219 NWNXCall(NWNX_SQL,
"GetAffectedRows");
225 NWNXCall(NWNX_SQL,
"GetDatabaseType");
226 return NWNXPopString();
231 NWNXCall(NWNX_SQL,
"DestroyPreparedQuery");
236 NWNXCall(NWNX_SQL,
"GetLastError");
237 return NWNXPopString();
242 NWNXCall(NWNX_SQL,
"GetPreparedQueryParamCount");
248 NWNXCall(NWNX_SQL,
"PostgreSQL_SetNextQueryResultsBinaryMode");
int NWNX_SQL_GetPreparedQueryParamCount()
Gets the number of parameteres expected by a prepared query.
int NWNX_SQL_ReadyToReadNextRow()
void NWNX_SQL_PreparedObjectFull(int position, object value, int base64=TRUE)
Set the full serialized object value of a prepared statement at given position.
string NWNX_SQL_GetDatabaseType()
void NWNX_SQL_PreparedFloat(int position, float value)
Set the float value of a prepared statement at given position.
void NWNX_SQL_PreparedString(int position, string value)
Set the string value of a prepared statement at given position.
string NWNX_SQL_ReadDataInActiveRow(int column=0)
void NWNX_SQL_DestroyPreparedQuery()
Free any resources attached to an existing prepared query.
void NWNX_SQL_PreparedInt(int position, int value)
Set the int value of a prepared statement at given position.
int NWNX_SQL_GetAffectedRows()
Gets the rows affected by a query.
void NWNX_SQL_PreparedObjectId(int position, object value)
Set the ObjectId value of a prepared statement at given position.
int NWNX_SQL_ExecutePreparedQuery()
Executes a query which has been prepared.
object NWNX_SQL_ReadFullObjectInActiveRow(int column=0, object owner=OBJECT_INVALID, float x=0.0, float y=0.0, float z=0.0, int base64=TRUE)
Like NWNX_SQL_ReadDataInActiveRow, but for full serialized objects.
void NWNX_SQL_PostgreSQL_SetNextQueryResultsBinaryMode()
Set the next query to return full binary results ON THE FIRST COLUMN ONLY.
void NWNX_SQL_PreparedJson(int position, json value)
Set the Json value of a prepared statement at given position. Convienence function to match other Pre...
int NWNX_SQL_ExecuteQuery(string query)
Directly execute an SQL query.
int NWNX_SQL_PrepareQuery(string query)
Prepares the provided query for execution.
string NWNX_SQL_GetLastError()
void NWNX_SQL_ReadNextRow()
Reads the next row of returned data.
void NWNX_SQL_PreparedNULL(int position)
Set the NULL value of a prepared statement at given position.