Product Documentation

MYSQL_REQ_QUERY_T

Jun 14, 2016

Describes a MySQL query.

This topic lists the expressions that are provided by this class.

Note: Expressions with the * symbol are inherited/promoted from sql_query_t.

COMMAND

String for the first keyword of the query.

Returns: text_t

SIZE

Integer representing the Size of the request query. Similar to CONTENT_LENGTH property of HTTP.

Returns: num_at

TEXT

Returns a string covering the entire query.

Returns: text_t

TEXT (uint n)

Returns a string covering the first n bytes of query. Like HTTP.BODY(n).

Parameters:

n - first bytes in query

Returns: text_t

TYPECAST_SQL_QUERY_T

Convert mysql_req_query_t to sql_query_t. Will raise an undef if the value is null, empty, or the value has an invalid format for the destination type. (sql_query_t : Describes a SQL query.)

Returns: sql_query_t