xref: /csrg-svn/lib/libc/db/test/README (revision 56057)
1*56057Sbostic#	@(#)README	5.2 (Berkeley) 08/27/92
256037Sbostic
356037SbosticThe script file consists of lines with a initial character which is
456037Sbosticthe "command" for that line.  Legal characters are as follows:
556037Sbostic
6*56057Sbostice: echo a string
7*56057Sbostic	+ writes out the rest of the line into the output file
856037Sbosticg: do a get command
956037Sbostic	+ must be followed by [kK]
1056037Sbostic	+ writes out the retrieved data DBT.
1156037Sbosticp: do a put command
1256037Sbostic	+ must be followed by [kK][dD]
1356037Sbosticr: do a del command
1456037Sbostic	+ must be followed by [kK]
1556037Sbostics: do a seq command
16*56057Sbostic	+ writes out the retrieved data DBT.
1756037Sbosticf: set the flags for the next command
1856037Sbostic	+ no value zero's the flags
1956037SbosticD [file]: data file
2056037Sbostic	+ set the current data value to the contents of the file
2156037Sbosticd [data]:
2256037Sbostic	+ set the current key value to the contents of the line.
2356037SbosticK [file]: key file
2456037Sbostic	+ set the current key value to the contents of the file
2556037Sbostick [data]:
2656037Sbostic	+ set the current key value to the contents of the line.
2756037Sbostic
2856037SbosticOptions to dbtest are as follows:
2956037Sbostic
3056037Sbostic	-i: Use the rest of the argument to set elements in the info
3156037Sbostic	    structure.  If the type is btree, then "-i cachesize=10240"
3256037Sbostic	    will set BTREEINFO.cachesize to 10240.
3356037Sbostic	-o: The rest of the argument is the output file instead of
3456037Sbostic	    using stdout.
3556037Sbostic	-t: Set the type of access, either "btree", "hash" or "recno".
36