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