Added new natives

This commit is contained in:
David Anderson 2005-08-31 04:36:25 +00:00
parent 8220cc4c01
commit c5cc94ba98

View File

@ -93,7 +93,17 @@ native dbi_error(Sql:_sql, _error[], _len);
*/
native dbi_type(_type[], _len);
/* This function can be used to found out if a table in a Sqlite database exists.
/* Returns the number of fields/colums in a result set.
* Unlike dbi_nextrow, you must pass a valid result handle.
*/
native dbi_num_fields(Result:result);
/* Retrieves the name of a field/column in a result set.
* Requires a valid result handle, and columns are numbered 1 to n.
*/
native dbi_field_name(Result:result, field, name[], maxLength);
/* This function can be used to find out if a table in a Sqlite database exists.
*/
stock bool:sqlite_table_exists(Sql:sql, table[]) {
new bool:exists