Google_QueryServiceResource

The "query" collection of methods.

Defined (1)

The class is defined in the following location(s).

/inc/google-api-php-client/src/contrib/Google_FusiontablesService.php  
  1. class Google_QueryServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Executes an SQL SELECT/SHOW/DESCRIBE statement. (query.sqlGet) 
  6. * @param string $sql An SQL SELECT/SHOW/DESCRIBE statement. 
  7. * @param array $optParams Optional parameters. 
  8. * @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. 
  9. * @opt_param bool hdrs Should column names be included (in the first row)?. Default is true. 
  10. * @return Google_Sqlresponse 
  11. */ 
  12. public function sqlGet($sql, $optParams = array()) { 
  13. $params = array('sql' => $sql); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('sqlGet', array($params)); 
  16. if ($this->useObjects()) { 
  17. return new Google_Sqlresponse($data); 
  18. } else { 
  19. return $data; 
  20. /** 
  21. * Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE statement. (query.sql) 
  22. * @param string $sql An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE statement. 
  23. * @param array $optParams Optional parameters. 
  24. * @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. 
  25. * @opt_param bool hdrs Should column names be included (in the first row)?. Default is true. 
  26. * @return Google_Sqlresponse 
  27. */ 
  28. public function sql($sql, $optParams = array()) { 
  29. $params = array('sql' => $sql); 
  30. $params = array_merge($params, $optParams); 
  31. $data = $this->__call('sql', array($params)); 
  32. if ($this->useObjects()) { 
  33. return new Google_Sqlresponse($data); 
  34. } else { 
  35. return $data;