public static function connect() { $result = false; try { self::$_dbh = PDO::initialize(OSCOM::BASE_DIRECTORY . 'Work/Database/errors.sqlite3', null, null, null, null, 'SQLite3'); self::$_dbh->exec('create table if not exists error_log ( timestamp int, message text );'); $result = true; } catch (\Exception $e) { trigger_error($e->getMessage()); } return $result; }
public static function connect() { self::$_dbh = DatabasePDO::initialize(OSCOM::BASE_DIRECTORY . 'Work/Database/errors.sqlite3', null, null, null, null, 'SQLite3'); self::$_dbh->exec('create table if not exists error_log ( timestamp int, message text );'); }