Using the Extended DB Viewer bundle, you can view the content of custom DBs, created with the DB Bundle. The DB Viewer bundle provides a set of console commands for viewing and modifying if needed database content.
Contents:
The JAR file of the Extended DB Viewer bundle is dbviewer.jar, and is located in the bundles folder.
The Extended DB Viewer bundle imports the following packages:
|
The Extended DB Viewer bundle registers pluggable commands under a com.prosyst.util.pcommands.PluggableCommands
service for viewing the content of the database handled by the DB Bundle.
For more information, about the mechanism of processing console commands, refer
to the "Parser Service"
document.
These commands are registered under a command group. The command group of the Extended DB Viewer bundle is db. The paragraph below provides a detailed description of the commands.
|
Tip: To get the parameters and descriptions of db commands, type help. The help command is standard and is added for all pluggable commands groups. To get the options supported by these commands, use help -db. To view detailed help for a single command, for example the custom command, type custom?.
The sequence of commands, listed below, represents, an example of using the DB group commands. To access a command, you have to enter in the db group, or you can type the command preceded by the group name and a dot. Here is used the phonebook database (see "DB Example" from the DB Bundle description), which is a custom database with alias and root directory.
fw>$cd db
db>$custom -f mydb_root
Using custom DB mydb_root
db>$tree
Phonebook
A
Mr. R. Armstrong
B
Mr. A. Been
C
Mr. P. Cage
Mrs. L. Coldwell
J
Mrs. A. Johnes
Mr. B. Johnes
Mrs. T. Johnson
L
Mrs. D. Lopez
Mr. M. Lopez
S
Mr. B. Simpson
db>$value Phonebook J "Mrs. T. Johnson"
Name: Phonebook J Mrs. T. Johnson Value: 8765 4321 |