NetBSD/regress/lib/libc/db
cgd 17d5af7436 don't try stat-printing stuff; the way we compile/test the library,
it doesn't include the statistics function.
1993-09-16 23:18:45 +00:00
..
btree.tests Add RCS identifiers. 1993-08-01 17:54:45 +00:00
hash.tests Add RCS identifiers. 1993-08-01 17:54:45 +00:00
Makefile don't try stat-printing stuff; the way we compile/test the library, 1993-09-16 23:18:45 +00:00
README update db code to v1.6 from vangogh, and put it in "db" rather than "DB" 1993-06-14 23:52:39 +00:00
dbtest.c update to v1.71 of DB package from ftp.cs.berkeley.edu 1993-09-16 23:15:57 +00:00
run.test update to v1.71 of DB package from ftp.cs.berkeley.edu 1993-09-16 23:15:57 +00:00

README

#	@(#)README	8.1 (Berkeley) 6/4/93

The script file consists of lines with a initial character which is
the "command" for that line.  Legal characters are as follows:

c: compare a record
	+ must be followed by [kK][dD]; the data value in the database
	  associated with the specified key is compared to the specified
	  data value.
e: echo a string
	+ writes out the rest of the line into the output file; if the
	  last character is not a carriage-return, a newline is appended.
g: do a get command
	+ must be followed by [kK]
	+ writes out the retrieved data DBT.
p: do a put command
	+ must be followed by [kK][dD]
r: do a del command
	+ must be followed by [kK]
s: do a seq command
	+ writes out the retrieved data DBT.
f: set the flags for the next command
	+ no value zero's the flags
D [file]: data file
	+ set the current data value to the contents of the file
d [data]:
	+ set the current key value to the contents of the line.
K [file]: key file
	+ set the current key value to the contents of the file
k [data]:
	+ set the current key value to the contents of the line.
o [r]: dump [reverse]
	+ dump the database out, if 'r' is set, in reverse order.

Options to dbtest are as follows:

	-f: Use the file argument as the database file.
	-i: Use the rest of the argument to set elements in the info
	    structure.  If the type is btree, then "-i cachesize=10240"
	    will set BTREEINFO.cachesize to 10240.
	-o: The rest of the argument is the output file instead of
	    using stdout.

Dbtest requires two arguments, the type of access "hash", "recno" or
"btree", and the script name.