5 * Small error-handling wrapper around PDO
10 string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs
11 ): \PDOStatement|false {
12 $args = func_get_args();
13 $res = call_user_func_array(array('parent', 'query'), $args);
21 public function exec(string $statement): int|false
23 $res = parent::exec($statement);
31 protected function handleError()
34 echo " " . $this->errorCode() . "\n";
35 echo " " . implode(' - ', $this->errorInfo()) . "\n";