Skip to content

Chapter 3: Create and Connect to a Program Database

Doyle Rowland edited this page Feb 13, 2022 · 4 revisions

Initial Launch of RAMSTK

On the initial launch of RAMSTK after installation, RAMSTK detects that the Site database server connection information is not set. You will be presented with a dialog similar to that shown below.

Common Database Dialog on First Run

Fill in the information for the Site database server. The following assumes the values in Chapter 2 were used when setting up the Site database server.

  • From the database dialect drop down, select postgres (this is the only option at the moment).
  • In the database server entry, enter the name of the Site database server.
  • In the RAMSTK user and RAMSTK password entries, enter ramstk.
  • Check the box next to 'Save Connection Parameters'. This will update the Site.toml file and you will not be prompted to provide the Site database connection parameters again.

Common Database Dialog Filled Out

Now press the 'OK' button. RAMSTK will connect to the Site database ramstk_common_ramstk and launch the main application. You will be presented with a window similar to that below.

RAMSTK Initial Launch

Creating a New Program Database

To create a new RAMSTK Program database, press the create new database button Create New Program DB Button to the far left on the tool bar. Optionally, select File -> New Program from the menu bar. You will be presented with the Program database dialog. Fill in the necessary information for the RAMSTK Program database server. Check the button next to 'Save Connection Parameters' and these values will be saved to your RAMSTK.toml file. When RAMSTK launches in the future, these fields will be automatically populated with the same information for your convenience.

Program Database Dialog Create DB

Now press the 'OK' button. RAMSTK will create and connect to the new Program database, auxiliary_power_supply in this example. You will be presented with a window similar to that below. RAMSTK is connected to the auxiliary_power_supply Program database and the Revision module is selected.

New Program Database

Connecting to an Existing Program Database

To connect to an existing RAMSTK Program database, press the open database button Open Program DB Button second from the left on the tool bar. Optionally, select File -> Open from the menu bar. You will be presented with the Program database dialog. All the fields will be filled in from the information in your RAMSTK.toml file. The database name can be manually entered in the appropriate field or selected from the list at the bottom of the dialog.

Open Program Database

Press the 'OK' button and RAMSTK will connect to the Program database.

Clone this wiki locally