Skip to main content

is_local_storage_item_table

Function is_local_storage_item_table 

Source
pub fn is_local_storage_item_table(table_name: &str) -> bool
Expand description

Recognize the WebKit/Chromium Local Storage ItemTable(key TEXT, value BLOB) table, so a caller knows when decode_localstorage_value applies to a dumped table’s value column.

Keyed on the distinctive table name ItemTable — the name WebKit/Chromium create for Local Storage. The column names are deliberately NOT part of the test: the real schema declares them with ON CONFLICT clauses (key TEXT UNIQUE ON CONFLICT REPLACE, value BLOB NOT NULL ON CONFLICT FAIL) that a lightweight CREATE TABLE parse does not always split cleanly, so a name match is the robust signal. The row shape (a TEXT key, a BLOB value) still surfaces positionally in each Row.