|
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> |
| 2 | +<class name="SqlResult" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd"> |
| 3 | + <brief_description> |
| 4 | + Query result. |
| 5 | + </brief_description> |
| 6 | + <description> |
| 7 | + This class holds the query's results |
| 8 | + </description> |
| 9 | + <tutorials> |
| 10 | + </tutorials> |
| 11 | + <methods> |
| 12 | + <method name="get_affected_rows" qualifiers="const"> |
| 13 | + <return type="int" /> |
| 14 | + <description> |
| 15 | + Returns the number of rows affected by the query that generated this SqlResult. |
| 16 | + </description> |
| 17 | + </method> |
| 18 | + <method name="get_array" qualifiers="const"> |
| 19 | + <return type="Array" /> |
| 20 | + <description> |
| 21 | + Retrieves the query result with an Array of Arrays. The values of each row will be contained in an Array. |
| 22 | + </description> |
| 23 | + </method> |
| 24 | + <method name="get_column" qualifiers="const"> |
| 25 | + <return type="Array" /> |
| 26 | + <param index="0" name="column" type="String" /> |
| 27 | + <param index="1" name="as_array" type="bool" default="true" /> |
| 28 | + <description> |
| 29 | + Retrieves a specific column by searching for the column name. |
| 30 | + [param column]: Name of the column. |
| 31 | + [param as_array]: If true, will return the values in an Dictionary. The keys will be the number of the each line. |
| 32 | + </description> |
| 33 | + </method> |
| 34 | + <method name="get_column_by_id" qualifiers="const"> |
| 35 | + <return type="Array" /> |
| 36 | + <param index="0" name="column" type="String" /> |
| 37 | + <param index="1" name="as_array" type="bool" /> |
| 38 | + <description> |
| 39 | + Retrieves a specific column by searching column's ID. |
| 40 | + [param column]: ID of the column. |
| 41 | + [param as_array]: If true, will return the values in an Dictionary. The keys will be the number of the each line. |
| 42 | + </description> |
| 43 | + </method> |
| 44 | + <method name="get_dictionary" qualifiers="const"> |
| 45 | + <return type="Dictionary" /> |
| 46 | + <description> |
| 47 | + Retrieves the query result with an Array of Dictionaries. The values of each row will be contained in an Dictionary. |
| 48 | + </description> |
| 49 | + </method> |
| 50 | + <method name="get_last_insert_id" qualifiers="const"> |
| 51 | + <return type="int" /> |
| 52 | + <description> |
| 53 | + Retrieves the last insert id by the query. |
| 54 | + </description> |
| 55 | + </method> |
| 56 | + <method name="get_metadata" qualifiers="const"> |
| 57 | + <return type="Dictionary" /> |
| 58 | + <description> |
| 59 | + Retrieves the query's metadata . |
| 60 | + </description> |
| 61 | + </method> |
| 62 | + <method name="get_row" qualifiers="const"> |
| 63 | + <return type="Variant" /> |
| 64 | + <param index="0" name="row" type="int" /> |
| 65 | + <param index="1" name="as_array" type="bool" default="false" /> |
| 66 | + <description> |
| 67 | + Retrieves a specific row by searching the row's ID. |
| 68 | + [param row]: ID of the column. |
| 69 | + [param as_array]:If true, it returns each elemnt of the row as a simple value, otherwise it will return each element as a Dictionary, with the key being the name of the column. |
| 70 | + </description> |
| 71 | + </method> |
| 72 | + <method name="get_warning_count" qualifiers="const"> |
| 73 | + <return type="int" /> |
| 74 | + <description> |
| 75 | + Retrieves the number of warnings generated. |
| 76 | + </description> |
| 77 | + </method> |
| 78 | + </methods> |
| 79 | +</class> |
0 commit comments