Google_QueryServiceResource

The "query" collection of methods.

Defined (1)

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

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