Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge a79fbe4 into 164a104
Browse files Browse the repository at this point in the history
  • Loading branch information
galvao committed Jan 21, 2019
2 parents 164a104 + a79fbe4 commit 3f6db21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/book/sql.md
Expand Up @@ -117,6 +117,7 @@ class Select extends AbstractSql implements SqlInterface, PreparableSqlInterface
{
const JOIN_INNER = 'inner';
const JOIN_OUTER = 'outer';
const JOIN_FULL_OUTER = 'full outer';
const JOIN_LEFT = 'left';
const JOIN_RIGHT = 'right';
const SQL_STAR = '*';
Expand Down Expand Up @@ -180,7 +181,7 @@ $select->join(
'foo', // table name
'id = bar.id', // expression to join on (will be quoted by platform object before insertion),
['bar', 'baz'], // (optional) list of columns, same requirements as columns() above
$select::JOIN_OUTER // (optional), one of inner, outer, left, right also represented by constants in the API
$select::JOIN_OUTER // (optional), one of inner, outer, full outer, left, right also represented by constants in the API
);

$select
Expand Down
1 change: 1 addition & 0 deletions src/Sql/Join.php
Expand Up @@ -26,6 +26,7 @@ class Join implements Iterator, Countable
{
const JOIN_INNER = 'inner';
const JOIN_OUTER = 'outer';
const JOIN_FULL_OUTER = 'full outer';
const JOIN_LEFT = 'left';
const JOIN_RIGHT = 'right';
const JOIN_RIGHT_OUTER = 'right outer';
Expand Down

0 comments on commit 3f6db21

Please sign in to comment.