Database: ezcQuerySelectSqlite
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcQuerySelectSqlite
|
SQLite specific implementation of ezcQuery. [
source]
This class reimplements methods where SQLite differs from the standard implementation in ezcQuery. The only difference is the right join syntax.
Parents
ezcQuery
|
--ezcQuerySelect
|
--ezcQuerySelectSqlite
Inherited Constants
From
ezcQuerySelect:
Inherited Member Variables
From
ezcQuerySelect:
From
ezcQuery:
Method Summary
|
public ezcQuerySelectSqlite |
__construct(
$db )
Constructs a new ezcQueryOracle object. |
|
public string |
rightJoin(
$table1, $table2, $column1, $column2 )
Returns the SQL for a right join. |
Inherited Methods
From
ezcQuerySelect :
From
ezcQuery :
Methods
__construct
ezcQuerySelectSqlite __construct(
$db )
Constructs a new ezcQueryOracle object.
Parameters
| Name |
Type |
Description |
$db |
PDO |
|
Redefinition of
rightJoin
string rightJoin(
string
$table1, string
$table2, string
$column1, string
$column2 )
Returns the SQL for a right join.
SQLite doesn't support a RIGHT OUTER JOIN, so we are rewriting it to a LEFT OUTER JOIN instead.
Example:
1. // the following code will produce the SQL
2. // SELECT id FROM t2 LEFT JOIN t1 ON t1.id = t2.id
3. $q->select( 'id' )->from( $q->rightJoin( 't1', 't2', 't1.id', 't2.id' ) );
Parameters
| Name |
Type |
Description |
$table1 |
string |
the name of the table to join with |
$table2 |
string |
the name of the table to join |
$column1 |
string |
the column to join with |
$column2 |
string |
the column to join on |
Redefinition of
Last updated: Fri, 02 Nov 2007