Closed paddor closed 10 months ago
This is definitely a WONTFIX
. Due to performance and concurrency concern, Extralite does not support calling back into Ruby code while running SQLite queries. This means that you cannot define functions, aggregations, collations etc in Ruby. If you wish to do so, you'll have to use the sqlite3-ruby
gem.
FWIW, the sqlean collection of SQLite extensions includes a regexp extension that works great, is fast, and provides multiple functions for working with regexps.
No problem. But in that case I suggest removing at least these lines: https://github.com/digital-fabric/extralite/blob/main/lib/sequel/adapters/extralite.rb#L127-L131
Personally I don't use this gem yet. Given the recent improvements in Sequel regarding Regexp caching (shameless plug) I just wanted to ensure drop-in compatibility with this gem.
A regexp function (for the
REGEXP
SQL operator) can't be created becauseExtralite::Database#create_function
is missing:PR #56 also depends on this.