Using the sqlite3 library in Python 3, I'm looking to filter a column by whether or not it matches a regex.
I found a question here that seems to do exactly that: Problem with regexp python and sqlite
The function in the top answer there takes arguments expr, item, where expr is given in the parametrized value and item is the cell given from iterating over the column bar. I can't find any documentation that would suggest that the value of the cell in the WHERE clause is passed into the last parameter of the custom function - it seems that it should be WHERE REGEXP(?,bar)?
Is there anywhere that documents this interaction explicitly?