lemon24 / reader

A Python feed reader library.
https://reader.readthedocs.io
BSD 3-Clause "New" or "Revised" License
438 stars 36 forks source link

ENABLE_JSON1 missing from "PRAGMA compile_options" on SQLite 3.38 #273

Closed lemon24 closed 2 years ago

lemon24 commented 2 years ago

In SQLite 3.38, the JSON functions are built-in, and don't require a compile option.

reader uses PRAGMA compile_options to check if the JSON functions are present, which results in failures like these:

reader.exceptions.StorageError: database requirement error: required SQLite compile options missing: ['ENABLE_JSON1']

Instead of looking at the compile options, reader should be checking for the required functionality.