The Installer class serves to install or update a BPS datastore. More...
Public Member Functions | |
| Installer (Datastore aDatastore) | |
| The constructor. | |
| void | latestLevel () |
| void | setup (String aSchema, Number aPin, String aTsData, String aTsIndex) |
| Execute the basic setup for a new datastore. | |
| void | setVerbose (Number aVerbosity) |
| Set amount of information to log. | |
| void | update (Number aMaxLevel) |
| Update an existing datastore to the latest level. | |
| Number | verbose () |
The Installer class serves to install or update a BPS datastore.
It will normally be called by the scripts createdb.js and updatedb.js.
| bps::installer::Installer::Installer | ( | Datastore | aDatastore | ) |
The constructor.
Depending on the task to perform, the database connection needs to be made different:
When creating a new datastore with setup(), initial connection should be as DBA (Oracle) or Superuser (PostgreSQL). During setup() the datastore will reconnect as the BPS owner of the new datastore.
When updating the datastore with update(), the initial connection should be as BPS owner of the datastore.
| aDatastore | Datastore object in connected state. |
| void bps::installer::Installer::latestLevel | ( | ) |
| void bps::installer::Installer::setup | ( | String | aSchema, |
| Number | aPin, | ||
| String | aTsData, | ||
| String | aTsIndex | ||
| ) |
Execute the basic setup for a new datastore.
| aSchema | Name of the new schema and BPS owner. |
| aPin | PIN of the new BPS owner. |
| aTsData | Tablespace name to store data. |
| aTsIndex | Tablespace name to store indexes. May be the same as aTsData. |
| void bps::installer::Installer::setVerbose | ( | Number | aVerbosity | ) |
Set amount of information to log.
| aVerbosity | 0=No loggin, 1=Actions only, 2=Actions and SQL statements. |
| void bps::installer::Installer::update | ( | Number | aMaxLevel | ) |
Update an existing datastore to the latest level.
| aMaxLevel | The maximum level to update to. |
| Number bps::installer::Installer::verbose | ( | ) |