Re: Converting Postgres SQL constraint logic to PHP? - Mailing list pgsql-general

From Ken Tanzer
Subject Re: Converting Postgres SQL constraint logic to PHP?
Date
Msg-id CAD3a31UM8AvVBVcEyK-A0JpNywoGvAZGzjSrthLZVrmwORmLvw@mail.gmail.com
Whole thread Raw
In response to Re: Converting Postgres SQL constraint logic to PHP?  (Ken Tanzer <ken.tanzer@gmail.com>)
List pgsql-general
On Fri, Jun 10, 2016 at 2:23 PM, Ken Tanzer <ken.tanzer@gmail.com> wrote:
On Fri, Jun 10, 2016 at 1:47 PM, Steve Atkins <steve@blighty.com> wrote:
 
You could look at one of the existing SQL parsers implemented in PHP, and use those to parse the constraint to a tree from which you could easily pull PHP.

This one sounds most promising!  I took a quick Google, and it looks like there are lots of them, and a heavy Mysql focus.  Anyone have experience or suggestions about which of these might be best, and particularly for Postgres?


Hi.  Just wanted to follow up one more time on this.  Best parsers in PHP, especially for Postgres?  Anyone?  Thanks! 

Ken



--
AGENCY Software  
A Free Software data system
By and for non-profits
(253) 245-3801

learn more about AGENCY or
follow the discussion.

pgsql-general by date:

Previous
From: Josh Kupershmidt
Date:
Subject: Re: pg_tune replacement
Next
From: Alexander Farber
Date:
Subject: Re: Moving from PHP to Java: A result was returned when none was expected.