summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/db/README
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libc/db/README')
-rw-r--r--src/regress/lib/libc/db/README36
1 files changed, 25 insertions, 11 deletions
diff --git a/src/regress/lib/libc/db/README b/src/regress/lib/libc/db/README
index 3b290b09d8..fddf5c3d5a 100644
--- a/src/regress/lib/libc/db/README
+++ b/src/regress/lib/libc/db/README
@@ -1,5 +1,5 @@
1# $NetBSD: README,v 1.4 1995/04/20 22:39:18 cgd Exp $ 1# $NetBSD: README,v 1.5 1996/05/03 21:54:19 cgd Exp $
2# @(#)README 8.4 (Berkeley) 6/20/94 2# @(#)README 8.8 (Berkeley) 7/31/94
3 3
4To run the tests, enter "make regress". 4To run the tests, enter "make regress".
5 5
@@ -9,8 +9,11 @@ the test runs, and even larger files (the database files) are created in
9variable TMPDIR to a directory where the files can be built. 9variable TMPDIR to a directory where the files can be built.
10 10
11=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 11=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
12The script file consists of lines with a initial character which is 12The script file consists of lines with an initial character which is
13the "command" for that line. Legal characters are as follows: 13the command for that line, or an initial character indicating a key
14or data entry for a previous command.
15
16Legal command characters are as follows:
14 17
15c: compare a record 18c: compare a record
16 + must be followed by [kK][dD]; the data value in the database 19 + must be followed by [kK][dD]; the data value in the database
@@ -19,17 +22,24 @@ c: compare a record
19e: echo a string 22e: echo a string
20 + writes out the rest of the line into the output file; if the 23 + writes out the rest of the line into the output file; if the
21 last character is not a carriage-return, a newline is appended. 24 last character is not a carriage-return, a newline is appended.
25f: set the flags for the next command
26 + no value zero's the flags
22g: do a get command 27g: do a get command
23 + must be followed by [kK] 28 + must be followed by [kK]
24 + writes out the retrieved data DBT. 29 + writes out the retrieved data DBT.
30o [r]: dump [reverse]
31 + dump the database out, if 'r' is set, in reverse order.
25p: do a put command 32p: do a put command
26 + must be followed by [kK][dD] 33 + must be followed by [kK][dD]
27r: do a del command 34r: do a del command
28 + must be followed by [kK] 35 + must be followed by [kK] unless R_CURSOR flag set.
36S: sync the database
29s: do a seq command 37s: do a seq command
38 + must be followed by [kK] if R_CURSOR flag set.
30 + writes out the retrieved data DBT. 39 + writes out the retrieved data DBT.
31f: set the flags for the next command 40
32 + no value zero's the flags 41Legal key/data characters are as follows:
42
33D [file]: data file 43D [file]: data file
34 + set the current data value to the contents of the file 44 + set the current data value to the contents of the file
35d [data]: 45d [data]:
@@ -38,17 +48,21 @@ K [file]: key file
38 + set the current key value to the contents of the file 48 + set the current key value to the contents of the file
39k [data]: 49k [data]:
40 + set the current key value to the contents of the line. 50 + set the current key value to the contents of the line.
41o [r]: dump [reverse] 51
42 + dump the database out, if 'r' is set, in reverse order. 52Blank lines, lines with leading white space, and lines with leading
53hash marks (#) are ignored.
43 54
44Options to dbtest are as follows: 55Options to dbtest are as follows:
45 56
57 -d: Set the DB_LOCK flag.
46 -f: Use the file argument as the database file. 58 -f: Use the file argument as the database file.
47 -i: Use the rest of the argument to set elements in the info 59 -i: Use the rest of the argument to set elements in the info
48 structure. If the type is btree, then "-i cachesize=10240" 60 structure. If the type is btree, then "-i cachesize=10240"
49 will set BTREEINFO.cachesize to 10240. 61 will set BTREEINFO.cachesize to 10240.
50 -o: The rest of the argument is the output file instead of 62 -o: The rest of the argument is the output file instead of
51 using stdout. 63 using stdout.
64 -s: Don't delete the database file before opening it, i.e.
65 use the database file from a previous run.
52 66
53Dbtest requires two arguments, the type of access "hash", "recno" or 67Dbtest requires two arguments, the type of access "hash", "recno"
54"btree", and the script name. 68or "btree", and the script name or "-" to indicate stdin.