xref: /csrg-svn/lib/libc/db/test/README (revision 56553)
1*56553Sbostic#	@(#)README	5.4 (Berkeley) 10/13/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*56553Sbosticc: compare a record
7*56553Sbostic	+ must be followed by [kK][dD]; the data value in the database
8*56553Sbostic	  associated with the specified key is compared to the specified
9*56553Sbostic	  data value.
1056057Sbostice: echo a string
1156057Sbostic	+ writes out the rest of the line into the output file
1256037Sbosticg: do a get command
1356037Sbostic	+ must be followed by [kK]
1456037Sbostic	+ writes out the retrieved data DBT.
1556037Sbosticp: do a put command
1656037Sbostic	+ must be followed by [kK][dD]
1756037Sbosticr: do a del command
1856037Sbostic	+ must be followed by [kK]
1956037Sbostics: do a seq command
2056057Sbostic	+ writes out the retrieved data DBT.
2156037Sbosticf: set the flags for the next command
2256037Sbostic	+ no value zero's the flags
2356037SbosticD [file]: data file
2456037Sbostic	+ set the current data value to the contents of the file
2556037Sbosticd [data]:
2656037Sbostic	+ set the current key value to the contents of the line.
2756037SbosticK [file]: key file
2856037Sbostic	+ set the current key value to the contents of the file
2956037Sbostick [data]:
3056037Sbostic	+ set the current key value to the contents of the line.
3156037Sbostic
3256037SbosticOptions to dbtest are as follows:
3356037Sbostic
3456037Sbostic	-i: Use the rest of the argument to set elements in the info
3556037Sbostic	    structure.  If the type is btree, then "-i cachesize=10240"
3656037Sbostic	    will set BTREEINFO.cachesize to 10240.
3756037Sbostic	-o: The rest of the argument is the output file instead of
3856037Sbostic	    using stdout.
3956488Sbostic
4056488SbosticDbtest requires two arguments, the type of access "hash", "recno" or
4156488Sbostic"btree", and the script name.
42