xref: /csrg-svn/lib/libc/db/test/README (revision 56553)
1#	@(#)README	5.4 (Berkeley) 10/13/92
2
3The script file consists of lines with a initial character which is
4the "command" for that line.  Legal characters are as follows:
5
6c: compare a record
7	+ must be followed by [kK][dD]; the data value in the database
8	  associated with the specified key is compared to the specified
9	  data value.
10e: echo a string
11	+ writes out the rest of the line into the output file
12g: do a get command
13	+ must be followed by [kK]
14	+ writes out the retrieved data DBT.
15p: do a put command
16	+ must be followed by [kK][dD]
17r: do a del command
18	+ must be followed by [kK]
19s: do a seq command
20	+ writes out the retrieved data DBT.
21f: set the flags for the next command
22	+ no value zero's the flags
23D [file]: data file
24	+ set the current data value to the contents of the file
25d [data]:
26	+ set the current key value to the contents of the line.
27K [file]: key file
28	+ set the current key value to the contents of the file
29k [data]:
30	+ set the current key value to the contents of the line.
31
32Options to dbtest are as follows:
33
34	-i: Use the rest of the argument to set elements in the info
35	    structure.  If the type is btree, then "-i cachesize=10240"
36	    will set BTREEINFO.cachesize to 10240.
37	-o: The rest of the argument is the output file instead of
38	    using stdout.
39
40Dbtest requires two arguments, the type of access "hash", "recno" or
41"btree", and the script name.
42