Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
enable JSON functions in SQLite
# To enable JSON functions in SQLite run in irb
require 'sqlite3'
c = SQLite3::Database.new('database')
c.enable_load_extension(1)
c.load_extension('/usr/local/Cellar/sqlite/3.14.2/lib/libsqlitefunctions.dylib')
# To install SQLIte with JSON extension on OS X run
brew install --with-functions --with-json1 sqlite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment