Exakat\Datastore::reload PHP Method

reload() public method

public reload ( )
    public function reload()
    {
        self::$sqliteRead->close();
        self::$sqliteWrite->close();
        self::$sqliteWrite = new \Sqlite3($this->sqlitePath, \SQLITE3_OPEN_READWRITE | \SQLITE3_OPEN_CREATE);
        self::$sqliteWrite->busyTimeout(self::TIMEOUT_WRITE);
        // open the read connexion AFTER the write, to have the sqlite databse created
        self::$sqliteRead = new \Sqlite3($this->sqlitePath, \SQLITE3_OPEN_READONLY);
        self::$sqliteWrite->busyTimeout(self::TIMEOUT_READ);
    }