Origin View
IndexedDB databases are stored by following the same-origin policy. A website can store and access data only for its own origin, consisting of protocol, domain and port, and Kahuna displays the databases stored for an origin. This databases, if any, are listed on the initial view when Kahuna is invoked. If no databases exist you get offered to import a database or to create a new one. While in the origin view, importing and creating new databases is also posible by clicking on the icon in the window title bar. The same gear icon in the title bar invokes the database tools while in the database view and the table tools if a datatable is displayed.
The icon in the window title bar of the database list invokes the application's global configuration and settings, which also serve as default settings for all databases and tables.
Database List
To refresh the list or to return to this list from another view, click on the origin part of the breadcrump in the window title. To display the table list with the details for one of the listed databases, click on the corresponding row in the table.
In the application settings, item , you can enter table names that should not appear in the list. Empty tables are listed here by default, even if they are excluded from notifications in the settings, item .
When hovering a row, another icon fades in that let you apply the database related tools.
Origin Tools
The layer with the origin tools is displayed when is clicked in the window title bar of the database list. With the origin tools, databases can be imported and new, empty databases can be created.
Import Database
A new database will be created or an existing database will be overwritten if a file in Dexie format is selected. The settings applied are listed when the icon is hovered. Most of the settings are relevant only for overwriting an existing database and they are explained in import configuration. Once a file has been selected, the import will start; no further activation is requested.
Create Database
This creates a new database with the specified name. Entering a table name and the associated indexes is optional. If used, the specified table becomes part of the created database. In the example shown on the left, the database
statistics
is created, which contains a table counter
. The table will have an autoincrement primary key and additional indexes for the fields url
and ts
. The syntax for index strings is described in the dexie documentation.