mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* added sql tests (linux only) * add mysql_escape_string module function its now possible to define a port for sql connection. (0 means default sql port like before) * escape string can fail, return error in this case * rebuild antlr * added docs
13 lines
384 B
Text
13 lines
384 B
Text
//
|
|
// SQL related functions
|
|
//
|
|
mysql_connect(host,username,password := "", port := 0);
|
|
mysql_query(connection,query,parameters := array{});
|
|
mysql_fetch_row(result);
|
|
mysql_affected_rows(result);
|
|
mysql_num_fields(result);
|
|
mysql_num_rows(result);
|
|
mysql_select_db(connection,database);
|
|
mysql_field_name(result,column_index);
|
|
mysql_close(connection);
|
|
mysql_escape_string(connection, str);
|