Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

ddl-manager

1.1.1 • Public • Published

ddl-manager

store your postgres procedures and triggers in files

usage:  
    $ ddl-manager [command] [options]  

command:  
    build    migrate functions and triggers from files into database    
    watch    build and watching folder for changes  
    dump     write functions and triggers from database into folder  
  
options:  
    --config      path to config.js file options,  default ./ddl-manager-config.js   
    --database    database name  
    --user        database user name  
    --password    database user password  
    --port        database port,  default: 5432  
    --host        database host,  default: localhost  
    --folder      path to directory with *.sql files for dump or build,  default ./ddl  
  
dump options:  
    --unfreeze    true or false,   
                        it dump option marking all database objects (funcs, triggers)  
                        give permissions sync with build or watch  
  
example:  
    $ ddl-manager build --config=ddl-manager-config.js  
    $ ddl-manager watch --config=ddl-manager-config.js  
    $ ddl-manager dump  --config=ddl-manager-config.js  --unfreeze=true  

Install

npm i ddl-manager

DownloadsWeekly Downloads

64

Version

1.1.1

License

ISC

Unpacked Size

514 kB

Total Files

107

Last publish

Collaborators

  • avatar