function createAndReset() {
  u.createOrDropDb(pgtools.createdb)
  .then((res) => {
    u.clog('createOrUpdateDb', 'createAndReset', res);
    return u.reset();
  })
  .then((res) => {
    u.clog('createOrUpdateDb', 'createAndReset', res);
    process.exit(u.ExitCodes.OK); // eslint-disable-line no-process-exit
  })
  .catch((err) => {
    u.clog('createOrUpdateDb', 'createAndReset', err.message);
    process.exit(u.ExitCodes.ERROR); // eslint-disable-line no-process-exit
  });
} // createAndReset
/**
 * Create the database, run resetdb to create the tables and indexes, and do
 * "pseudo-migrations" to bring the migration table up to date.
 */
Create the database, run resetdb to create the tables and indexes, and do
"pseudo-migrations" to bring the migration table up to date.
Create the database run resetdb to create the tables and indexes and do " pseudo - migrations " to bring the migration table up to date .
function createAndReset() {
  u.createOrDropDb(pgtools.createdb)
  .then((res) => {
    u.clog('createOrUpdateDb', 'createAndReset', res);
    return u.reset();
  })
  .then((res) => {
    u.clog('createOrUpdateDb', 'createAndReset', res);
    process.exit(u.ExitCodes.OK); 
  })
  .catch((err) => {
    u.clog('createOrUpdateDb', 'createAndReset', err.message);
    process.exit(u.ExitCodes.ERROR); 
  });
} 
function createAndReset ( ) { u . createOrDropDb ( pgtools . createdb ) . then ( ( res ) => { u . clog ( 'createOrUpdateDb' , 'createAndReset' , res ) ; return u . reset ( ) ; } ) . then ( ( res ) => { u . clog ( 'createOrUpdateDb' , 'createAndReset' , res ) ; process . exit ( u . ExitCodes . OK ) ; } ) . catch ( ( err ) => { u . clog ( 'createOrUpdateDb' , 'createAndReset' , err . message ) ; process . exit ( u . ExitCodes . ERROR ) ; } ) ; }
Create the database, run resetdb to create the tables and indexes, and do
 "pseudo-migrations" to bring the migration table up to date.
Create the database run resetdb to create the tables and indexes and do " pseudo - migrations " to bring the migration table up to date .
// eslint-disable-line no-process-exit // eslint-disable-line no-process-exit // createAndReset