Google_QueryServiceResource
The "query" collection of methods.
Defined (1)
The class is defined in the following location(s).
- /google-api/src/contrib/Google_FusiontablesService.php
- class Google_QueryServiceResource extends Google_ServiceResource {
- /**
- * Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE/CREATE statement. (query.sql)
- *
- * @param string $sql An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE statement.
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool typed Should typed values be returned in the (JSON) response -- numbers for numeric values and parsed geometries for KML values? Default is true.
- * @opt_param bool hdrs Should column names be included (in the first row)?. Default is true.
- * @return Google_Sqlresponse
- */
- public function sql($sql, $optParams = array()) {
- $params = array('sql' => $sql);
- $params = array_merge($params, $optParams);
- $data = $this->__call('sql', array($params));
- if ($this->useObjects()) {
- return new Google_Sqlresponse($data);
- } else {
- return $data;
- }
- }
- /**
- * Executes an SQL SELECT/SHOW/DESCRIBE statement. (query.sqlGet)
- *
- * @param string $sql An SQL SELECT/SHOW/DESCRIBE statement.
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool typed Should typed values be returned in the (JSON) response -- numbers for numeric values and parsed geometries for KML values? Default is true.
- * @opt_param bool hdrs Should column names be included (in the first row)?. Default is true.
- * @return Google_Sqlresponse
- */
- public function sqlGet($sql, $optParams = array()) {
- $params = array('sql' => $sql);
- $params = array_merge($params, $optParams);
- $data = $this->__call('sqlGet', array($params));
- if ($this->useObjects()) {
- return new Google_Sqlresponse($data);
- } else {
- return $data;
- }
- }
- }