dashboard - first draft of complete redesign
This commit is contained in:
@@ -8,8 +8,10 @@ class TestStatement extends PDOStatement
|
||||
public function __construct(private string $sql) {}
|
||||
public function execute(?array $params = null): bool
|
||||
{
|
||||
if (!str_starts_with($this->sql, 'SELECT')) {
|
||||
file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/writes.jsonl', json_encode([$this->sql, $params]) . "\n", FILE_APPEND);
|
||||
if (!str_starts_with($this->sql, 'SELECT')) {
|
||||
$log = str_contains($this->sql, 'WHERE COALESCE(ansage_datum_bis, ansage_datum_von) < ?')
|
||||
? '/cleanup.jsonl' : '/writes.jsonl';
|
||||
file_put_contents($_SERVER['DOCUMENT_ROOT'] . $log, json_encode([$this->sql, $params]) . "\n", FILE_APPEND);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user