Introduce a Database API that abstracts opening, upgrade and fallback

Bug #1222157 reported by Cris Dywan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Midori Web Browser
Fix Released
High
Cris Dywan

Bug Description

We want a Database base API that handles these recurring use cases:

Open the database.
Apply a schema.
Assert if files are missing.
Upgrade to a newer schema if needed.
Look in the correct folders.
Allow easy fallback to another file format eg. session.xbel or speeddial.json when needed as a signal.

I'm thinking this can be a base class that later grows more convenience like throw'ing errors instead of manually checking db.errormsg and status.

Tags: tabby

Related branches

Cris Dywan (kalikiana)
description: updated
RabbitBot (rabbitbot-a)
Changed in midori:
status: Confirmed → Fix Committed
Cris Dywan (kalikiana)
Changed in midori:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.