Last active
September 28, 2015 03:48
-
-
Save chanmix51/1380129 to your computer and use it in GitHub Desktop.
Generating model files in /tmp with Pomm
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 | |
$loader = require __DIR__."/../vendor/autoload.php"; | |
$database = new Pomm\Connection\Database(array('dsn' => 'pgsql://user:password@host:port/db_name')); | |
$scan = new Pomm\Tools\ScanSchemaTool(array( | |
'schema' => 'public', | |
'database' => $database, | |
'prefix_dir' => '/tmp' | |
)); | |
$scan->execute(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment