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

Request #7949 ability to select a schema with Generator
Submitted: 2006-06-20 12:44 UTC
From: peter dot termaten at gmail dot com Assigned:
Status: Open 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:
Package:
Bug Type:
Summary:
From: peter dot termaten at gmail dot com
New email:
PHP Version: Package Version: OS:

 

 [2006-06-20 12: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