toSql() public method

Returns the sql for the query
public toSql ( )
Example #1
0
 public function testDistinctColumn()
 {
     $query = new Query();
     $query->distinct()->select('userid')->from('user');
     $this->assertEquals('SELECT DISTINCT userid FROM user', $query->toSql());
 }