connection = new Pdo( sprintf( 'sqlite:%s', $filename ), $username, $password ); $this->connection->setAttribute( Pdo::ATTR_ERRMODE, Pdo::ERRMODE_EXCEPTION ); $this->connection->setAttribute( Pdo::ATTR_DEFAULT_FETCH_MODE, Pdo::FETCH_OBJ ); // Init requirements $this->auth = new Database\Auth( $this->connection ); $this->bookmark = new Database\Bookmark( $this->connection ); $this->cache = new Database\Cache( $this->connection ); $this->history = new Database\History( $this->connection ); $this->identity = new Database\Identity( $this->connection ); $this->session = new Database\Session( $this->connection ); // Init data if (!$exists) { // Open yggverse homepage $this->session->add( 'gemini://yggverse.cities.yesterweb.org/' ); } } }