コード例 #1
0
ファイル: QueryTest.php プロジェクト: DoctorSanchez/database
 public function testCompile()
 {
     $query = new Query('This');
     $this->assertEquals('This', $query->getQuery());
 }
コード例 #2
0
ファイル: Compiler.php プロジェクト: DoctorSanchez/database
 /**
  * Compile a subquery
  *
  * @param   Collector  $collection  query collector
  * @return  string     subquery sql
  */
 public function compileSubQuery(Query $query)
 {
     return '(' . $query->getQuery($this->connection) . ')';
 }