Low commit activity in last 3 years
A long-lived project that still receives updates
Adds REGEXP support for SQLite3 in ActiveRecord.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

 Project Readme

SQLite3 ActiveRecord REGEXP

Version

This adds REGEXP support to SQLite3 in ActiveRecord.

This project uses Semantic Versioning.

Installation

Add this line to your application's Gemfile:

gem 'sqlite3_ar_regexp', '~> 3.0'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sqlite3_ar_regexp

Usage

# find all accounts where the first name starts with "a"
Account.where('first_name REGEXP "^a"')

Credits

The original code for this was done by Joe Yates.