- Work done on Repository and QueryBuilder -- fixed some minor bugs and added some delete() functions
- Added a generic SQL query function to PDOObject
This commit is contained in:
1 parent
b589ba3c2b
commit
9df7e65dcf
10 files changed
+139
-31
No files matched your search
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Ulmus\Query;
|
||||
|
||||
class Delete extends Fragment {
|
||||
|
||||
public int $order = -100;
|
||||
|
||||
public bool $lowPriority = false;
|
||||
|
||||
public bool $quick = false;
|
||||
|
||||
public bool $ignore = false;
|
||||
|
||||
public string $alias;
|
||||
|
||||
public function render() : string
|
||||
{
|
||||
return $this->renderSegments([
|
||||
'DELETE',
|
||||
( $this->alias ?? false ),
|
||||
( $this->lowPriority ? 'LOW_PRIORITY' : false ),
|
||||
( $this->quick ? 'QUICK' : false ),
|
||||
( $this->ignore ? 'IGNORE' : false ),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user