Skip to main content
Question

How to do REGEXP in SQLCreator transformer on a SQLite database

  • December 2, 2019
  • 1 reply
  • 43 views

gabriel_hirsch
Contributor
Forum|alt.badge.img+11

I have a SQLite database (version 3, created in FME) that I want to use a Select statement with a regular expression in the SQLCreator transformer. According to the SQLite documentation the regexp() user function is a special one that need to be defined. Does anyone know a easy way to do this in FME? (it have to work in both PC and Mac environment)

1 reply

david_r
Evangelist
  • December 2, 2019

I was a bit too quick to answer, not realizing that the REGEXP reserved word doesn't work out-of-the-box in SQLite3. So basically you need to provide some precompiled library (e.g. pcre.so for Linux) that is platform-dependent. Unfortunately I have the impression that there are no official repositories or distributors of such libraries.

I've googled around quite a bit but was unable to find any such libraries for Windows, only for Linux (which might possibly work on a Mac, if you're lucky).

What exactly is the use case for REGEXP in the database? Is there perhaps another way to accomplish the same thing?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings