| 1 |
This README describes the steps needed to run a demo example of BerkeleyDB. |
| 2 |
|
| 3 |
1. Read the pages in the Reference Guide that describe building |
| 4 |
BerkeleyDB on VxWorks: |
| 5 |
|
| 6 |
$(WIND_BASE)/target/src/BerkeleyDB/docs/ref/build_vxworks/intro.html |
| 7 |
$(WIND_BASE)/target/src/BerkeleyDB/docs/ref/build_vxworks/notes.html |
| 8 |
$(WIND_BASE)/target/src/BerkeleyDB/docs/ref/build_vxworks/faq.html |
| 9 |
|
| 10 |
2. Launch Tornado 2.0 and open up the BerkeleyDB project. |
| 11 |
|
| 12 |
3. Add the demo project to that workspace: |
| 13 |
|
| 14 |
$(WIND_BASE)/target/src/BerkeleyDB/build_vxworks/demo/dbdemo.wpj |
| 15 |
|
| 16 |
4. Build BerkeleyDB as described in the Reference Guide. |
| 17 |
|
| 18 |
5. Build the dbdemo project. |
| 19 |
|
| 20 |
6. Download BerkeleyDB onto the target. |
| 21 |
|
| 22 |
7. Download the dbdemo project onto the target. |
| 23 |
|
| 24 |
8. Open a windsh to the target and run the demo: |
| 25 |
|
| 26 |
-> dbdemo "<pathname>/<dbname>" |
| 27 |
|
| 28 |
Where pathname is a pathname string pointing to a directory that the |
| 29 |
demo can create a database in. That directory should already exist. |
| 30 |
The dbname is the name for the database. For example: |
| 31 |
|
| 32 |
-> dbdemo "/tmp/demo.db" |
| 33 |
|
| 34 |
9. The demo program will ask for input. You can type in any string. |
| 35 |
The program will add an entry to the database with that string as |
| 36 |
the key and the reverse of that string as the data item for that key. |
| 37 |
It will continue asking for input until you hit ^D or enter "quit". |
| 38 |
Upon doing so, the demo program will display all the keys you have |
| 39 |
entered as input and their data items. |