xref: /original-bsd/lib/libc/db/test/README (revision be1f24e8)
1#	@(#)README	5.3 (Berkeley) 10/09/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
6e: echo a string
7	+ writes out the rest of the line into the output file
8g: do a get command
9	+ must be followed by [kK]
10	+ writes out the retrieved data DBT.
11p: do a put command
12	+ must be followed by [kK][dD]
13r: do a del command
14	+ must be followed by [kK]
15s: do a seq command
16	+ writes out the retrieved data DBT.
17f: set the flags for the next command
18	+ no value zero's the flags
19D [file]: data file
20	+ set the current data value to the contents of the file
21d [data]:
22	+ set the current key value to the contents of the line.
23K [file]: key file
24	+ set the current key value to the contents of the file
25k [data]:
26	+ set the current key value to the contents of the line.
27
28Options to dbtest are as follows:
29
30	-i: Use the rest of the argument to set elements in the info
31	    structure.  If the type is btree, then "-i cachesize=10240"
32	    will set BTREEINFO.cachesize to 10240.
33	-o: The rest of the argument is the output file instead of
34	    using stdout.
35
36Dbtest requires two arguments, the type of access "hash", "recno" or
37"btree", and the script name.
38