Created
August 7, 2013 13:47
-
-
Save filipebarcos/6174194 to your computer and use it in GitHub Desktop.
Figure out which SQLite3 version your sqlite3 gem is getting
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
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