diff options
| author | deraadt <> | 1996-05-07 09:02:23 +0000 |
|---|---|---|
| committer | deraadt <> | 1996-05-07 09:02:23 +0000 |
| commit | b08ebc2003288b99b5bff2ea3afc425782eb3c08 (patch) | |
| tree | 1a581e7edb42e14132c27491391f3f8bd151913b /src/regress/lib/libc/db/README | |
| parent | 42a36c73710670af2dd4f549d9c927cd17ed45bc (diff) | |
| download | openbsd-b08ebc2003288b99b5bff2ea3afc425782eb3c08.tar.gz openbsd-b08ebc2003288b99b5bff2ea3afc425782eb3c08.tar.bz2 openbsd-b08ebc2003288b99b5bff2ea3afc425782eb3c08.zip | |
db release 1.85
Diffstat (limited to 'src/regress/lib/libc/db/README')
| -rw-r--r-- | src/regress/lib/libc/db/README | 36 |
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 | ||
| 4 | To run the tests, enter "make regress". | 4 | To 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 | |||
| 9 | variable TMPDIR to a directory where the files can be built. | 9 | variable TMPDIR to a directory where the files can be built. |
| 10 | 10 | ||
| 11 | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | 11 | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= |
| 12 | The script file consists of lines with a initial character which is | 12 | The script file consists of lines with an initial character which is |
| 13 | the "command" for that line. Legal characters are as follows: | 13 | the command for that line, or an initial character indicating a key |
| 14 | or data entry for a previous command. | ||
| 15 | |||
| 16 | Legal command characters are as follows: | ||
| 14 | 17 | ||
| 15 | c: compare a record | 18 | c: 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 | |||
| 19 | e: echo a string | 22 | e: 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. |
| 25 | f: set the flags for the next command | ||
| 26 | + no value zero's the flags | ||
| 22 | g: do a get command | 27 | g: 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. |
| 30 | o [r]: dump [reverse] | ||
| 31 | + dump the database out, if 'r' is set, in reverse order. | ||
| 25 | p: do a put command | 32 | p: do a put command |
| 26 | + must be followed by [kK][dD] | 33 | + must be followed by [kK][dD] |
| 27 | r: do a del command | 34 | r: do a del command |
| 28 | + must be followed by [kK] | 35 | + must be followed by [kK] unless R_CURSOR flag set. |
| 36 | S: sync the database | ||
| 29 | s: do a seq command | 37 | s: 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. |
| 31 | f: set the flags for the next command | 40 | |
| 32 | + no value zero's the flags | 41 | Legal key/data characters are as follows: |
| 42 | |||
| 33 | D [file]: data file | 43 | D [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 |
| 35 | d [data]: | 45 | d [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 |
| 39 | k [data]: | 49 | k [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. |
| 41 | o [r]: dump [reverse] | 51 | |
| 42 | + dump the database out, if 'r' is set, in reverse order. | 52 | Blank lines, lines with leading white space, and lines with leading |
| 53 | hash marks (#) are ignored. | ||
| 43 | 54 | ||
| 44 | Options to dbtest are as follows: | 55 | Options 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 | ||
| 53 | Dbtest requires two arguments, the type of access "hash", "recno" or | 67 | Dbtest requires two arguments, the type of access "hash", "recno" |
| 54 | "btree", and the script name. | 68 | or "btree", and the script name or "-" to indicate stdin. |
