0

Anyone know of any re libraries out there to help parse columns, functions, and values from an SQL WHERE clause?

Example strings:

COLUMN=='VALUE'
COLUMN=='VALUE' AND COLUMN2='VALUE'
FUNCTION(COLUMN)==FUNCTION('VALUE')

I'm working in Python, but can port most anything over...

Loki
  • 6,205
  • 4
  • 24
  • 36

1 Answers1

1

Perhaps this SO question and its answers will help (Parsing SQL with Python).

Here are a couple of links that may help.

Community
  • 1
  • 1
Oded
  • 489,969
  • 99
  • 883
  • 1,009