Example #1
0
 private function getQuery()
 {
     $pdo = $this->getConnection()->getConnection();
     $db = new Query($pdo);
     $db->setTable('testTable');
     return $db;
 }
Example #2
0
<?php

require 'vendor/autoload.php';
use CBase\Query\Query;
$db = new Query(require_once 'config/bootstrap.php');
$db->setTable('test');
/**
 * 
 * Put Your query here
 * 
 */
$db->close();