Skip to content

Instantly share code, notes, and snippets.

@chanmix51
Last active September 28, 2015 03:48
Show Gist options
  • Save chanmix51/1380129 to your computer and use it in GitHub Desktop.
Save chanmix51/1380129 to your computer and use it in GitHub Desktop.
Generating model files in /tmp with Pomm
<?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