Implement partial read-only support for SQLite versions older than 3.8.0.