Created
April 4, 2011 21:52
-
-
Save chanmix51/902530 to your computer and use it in GitHub Desktop.
Few lines of PHP to scan a ph schema to create model files with Silex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__.'/vendor/pomm/test/autoload.php'; | |
$service = new Pomm\Service(array('default' => array('dsn' => 'pgsql://nss_user:nss_password@localhost/nss_db'))); | |
$scan = new Pomm\Tools\ScanSchemaTool(array( | |
'dir'=> __DIR__, | |
'schema' => 'transfo', | |
'connection' => $service->getDatabase(), | |
)); | |
$scan->execute(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment