Spike deriving from unravelling SQLite's ad hoc interfaces implementation. Includes port of sqlite_index_info.