Created
October 13, 2016 07:31
-
-
Save melnikaite/57f19144b07f92e636a917b04fda5dd5 to your computer and use it in GitHub Desktop.
enable JSON functions in SQLite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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