Net_Gearman
[ class tree: Net_Gearman ] [ index: Net_Gearman ] [ all elements ]

Source for file SQL.php

Documentation is available at SQL.php

  1. <?php
  2.  
  3. require_once 'DB.php';
  4.  
  5. {
  6.     public function run(stdClass $arg)
  7.     {
  8.         if (!isset($arg->sql|| !strlen($arg->sql)) {
  9.             throw new Net_Gearman_Job_Exception;
  10.         }
  11.  
  12.         $db = DB::connect('mysql://testing:testing@192.168.243.20/testing');
  13.         $db->setFetchMode(DB_FETCHMODE_ASSOC);
  14.         $res $db->getAll($arg->sql);
  15.         return $res;
  16.     }
  17. }
  18.  
  19. ?>

Documentation generated on Mon, 11 Mar 2019 15:21:09 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.