- First draft of current WIP
This commit is contained in:
commit
b73d046e0a
47 files changed
+2797
No files matched your search
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Ulmus\Query;
|
||||
|
||||
class Join extends Fragment {
|
||||
|
||||
const TYPE_LEFT = "LEFT";
|
||||
const TYPE_RIGHT = "RIGHT";
|
||||
const TYPE_INNER = "INNER";
|
||||
const TYPE_FULL = "FULL";
|
||||
const TYPE_CROSS = "CROSS";
|
||||
const TYPE_NATURAL = "NATURAL";
|
||||
|
||||
public string $type = self::TYPE_INNER;
|
||||
|
||||
public bool $outer = false;
|
||||
|
||||
public function render() : string
|
||||
{
|
||||
return $this->renderSegments([
|
||||
$this->side,
|
||||
'JOIN',
|
||||
/* table here! */,
|
||||
'ON',
|
||||
/* WHERE ! */
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user