Connect to DB
Displays a database connect dialog to the user:
The user supplies the name of the database to connect to, the host that the database resides on and the port that PostgreSQL is listening on. When the information has been entered and the user selects 'OK' the application attempts to connect to the database. If the connection was successful the database name will appear in the Status Bar. Selecting 'Cancel' exits from the connection dialog with no further action.
Note: starting the application using the -U switch, the connect dialog will also display boxes for user name and password.
New Buffer
Creates a new empty buffer named 'scratch' and displays it in the SQL Command Window. The buffer name is added to the list of buffers under the Buffers menu and to the application's title bar. See: Buffers Menu
Open File
Displays a open file dialog to the user:
The user can navigate the file system and select the SQL file that they wish to edit and/or execute. The selected file is opened in a new buffer and displayed in the SQL Command Window. The file name is added to the list of buffers under the Buffers menu and to the application's title bar. See: Buffers Menu
Save Buffer & Save Buffer As
Allows the user to save the buffer currently displayed in the SQL Command Window to a file. If the user selects 'Save Buffer' on buffer that was opened from a file, the file is updated. If 'Save Buffer' is selected on a 'scratch' buffer or the user selects 'Save Buffer As' the user will be prompted with a file save dialog:
The user can navigate the file system and select the directory and enter a filename that they wish to save the buffer to. If the user saved a 'scratch' buffer or had selected 'Save Buffer As', the new name is added to the list of buffers under the Buffers menu and to the application's title bar. See: Buffers Menu
Delete Buffer
Removes the current buffer displayed in the SQL Command Window. If the buffer has not been saved, the user will be prompted if they wish to save it or not. The buffer name is removed from buffer list and the contents of the command window replaced with the next buffer in the list. See: Buffers Menu
Print Buffer
Displays a print dialog to the user:
The user can enter the print device that they wish to sent the contents of the SQL Command Window to. See: Buffers Menu
Exit
Exits the application. The user is prompted to save any open buffers that need to be saved before closing.