Member Junction
    Preparing search index...

    Phase C — Generates SQL provisioning scripts and validates database connectivity.

    const dbPhase = new DatabaseProvisionPhase();
    const result = await dbPhase.Run({
    Dir: '/path/to/install',
    Config: { DatabaseHost: 'localhost', DatabasePort: 1433, DatabaseName: 'MJ' },
    Yes: false,
    Emitter: emitter,
    });
    console.log(`Scripts: ${result.ScriptsGenerated.join(', ')}`);
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Execute the database provisioning phase: generate the scripts, make sure the database server is reachable, and set the database up if it is not already.

      Parameters

      Returns Promise<DatabaseProvisionResult>

      Script paths, whether setup was confirmed, and whether the script ran.

      DB_UNREACHABLE when the server cannot be reached; DB_NOT_SET_UP when the database is not set up and no administrator login was given (or the user chose to run the script and it still is not); DB_ADMIN_LOGIN_FAILED when the administrator login is refused; DB_SETUP_FAILED when the setup script fails or leaves a login unable to sign in.