Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a user defined regexp function when initialising sqlite connection #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andreaslang
Copy link

Hi, I realised that by default I could not use the REGEXP keyword/function of sqlite because it requires a user-defined function to work. This patch solves the problem and allows to do:

pysqldf("""
    SELECT count(*) 
    FROM tweets
        WHERE NOT date REGEXP '^[0-9]{4}-[0-9]{2}-[0-9]{2}'
    LIMIT 10
""") 

It's a fairly simple patch, let me know what you think or if it requires any changes.

@javadba
Copy link

javadba commented May 7, 2019

Do you have a fork that includes this (and possibly other fixes)? This project is approaching abandonware status it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants