2 ms·
To check if you already have it installed run "pragma compile_options;" and look for ENABLE_JSON1. On my Mac I had it installed both on sqlite3 in terminal/bash
by punnerud 8y ago
To check if you already have it installed run "pragma compile_options;" and look for ENABLE_JSON1. On my Mac I had it installed both on sqlite3 in terminal/bash and Python :-)
import sqlite3
con = sqlite3.connect(':memory:')
con.enable_load_extension(True)
a = con.execute("pragma compile_options;")
for i in a: print(i); #check for ENABLE_JSON1
The newest releases of sqlite3 have it included. If not you can build it this way: https://burrows.svbtle.com/build-sqlite-json1-extension-as-shared-library-on-os-x https://burrows.svbtle.com/build-sqlite-json1-extension-as-s...
Note that you will only get this error on load if you have it: 'Error: error during initialization:'