@unitybase/ubcli/initDB

Create a database (schema) and a minimal set of DB object for a UnityBase ORM

Usage from a command line:

 ubcli initDB -?
 ubcli initDB -u admin -p admin -dba postgres -dbaPwd postgreDBAPassword

Usage from a code:

 const initDB = require('@unitybase/ubcli/initDB')
 let options = {
    host: 'http://localhost:888',
    user: 'admin',
    pwd: 'admin',
    clientIdentifier: 3,
    dropDatabase: true,
    createDatabase: true,
    dba: 'postgres',
    dbaPwd: 'postgreDBAPassword'
}
initDB(options)

If DBA already create a database set both dropDatabase & createDatabase to false