Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.11.5

Request #7949 ability to select a schema with Generator
Submitted: 2006-06-20 17:44 UTC
From: peter dot termaten at gmail dot com Assigned:
Status: Suspended Package: DB_DataObject (version 1.8.4)
PHP Version: Irrelevant OS: PostgreSQL
Roadmaps: (Not assigned)    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2010-04-26 04:10 UTC
Package:
Bug Type:
Summary:
From: peter dot termaten at gmail dot com
New email:
PHP Version: Package Version: OS:

 

 [2006-06-20 17:44 UTC] peter dot termaten at gmail dot com (Peter Termaten)
Description: ------------ Hi, Using the Generator when building classes from PostgreSQL I figured it would be handy to generate only tables from a particular schema. This could be achieved in a similar way as selected particular tables, by adding a Configuration option like : 'include_schema_regex'. 'exclude_schema_regex' could add an exclusion of a schema See code sammple below Test script: --------------- Adding the following to Generator.php, method _createTableList directly after the logic for stripping the schema part from the table name would do the trick: if (isset($options['include_schema_regex'] ) && !preg_match($options['include_schema_regex'],$bits[0])) { continue; }

Comments

 [2010-04-26 04:10 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!