Skip to content

Instantly share code, notes, and snippets.

@filipebarcos
Created August 7, 2013 13:47
Show Gist options
  • Save filipebarcos/6174194 to your computer and use it in GitHub Desktop.
Save filipebarcos/6174194 to your computer and use it in GitHub Desktop.
Figure out which SQLite3 version your sqlite3 gem is getting
database = SQLite3::Database.new('your_database.db')
version = database.execute("SELECT sqlite_version() AS 'SQLite Version';").flatten # it returns [['3.x.x']]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment