• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..27-May-201531

dbdemo.cH A D04-May-20093.8 KiB

dbdemo20.wpjH A D04-May-20092.1 KiB

dbdemo22.wpjH A D04-May-20092.7 KiB

READMEH A D04-May-20091.4 KiB

README

1This README describes the steps needed to run a demo example of BerkeleyDB.
2
31. 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
102. Launch Tornado 2.0 and open up the BerkeleyDB project.
11
123. Add the demo project to that workspace:
13
14	$(WIND_BASE)/target/src/BerkeleyDB/build_vxworks/demo/dbdemo.wpj
15
164. Build BerkeleyDB as described in the Reference Guide.
17
185. Build the dbdemo project.
19
206. Download BerkeleyDB onto the target.
21
227. Download the dbdemo project onto the target.
23
248. 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
349. 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.
40