Upgrading to Sqlite3 v2.0

I just had a little challange updating the sqlite3 gem in one of my hobby projects. I like keeping small projects up to date. It really pays off, like they take you to do conference talks later on. So here’s a memory:

# Gemfile
gem 'sqlite3', '~> 2.0', force_ruby_platform: true

> brew install pkg-config
> brew upgrade sqlite3 # version ~> 3.46.0 needed
> bundle update

Unfortunately, I realised it won’t work. ActiveRecord is bend on sqlite3 gem version ~> 1.4. Maybe sequel gem would do. But for now I stay with sqlite3 version 1.7.

Late update on 9th of December 2024: I wanted to make a PR for the current ActiveRecord (v8) and this time it worked.

Leave a Reply

Your email address will not be published. Required fields are marked *