From: Paul Marquess Date: Wed, 12 Mar 1997 15:51:14 +0000 (+0000) Subject: Refresh DB_File to 1.12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b3deed9189f963e9994815307931f9084f60d1d9;p=p5sagit%2Fp5-mst-13.2.git Refresh DB_File to 1.12 > Title: "Regularize headings in DB_File documentation" > From: Chip Salzenberg > Files: ext/DB_File/DB_File.pm Could you merge this patch please. It documents the fact that DB_File will not yet work with Berkeley DB version 2. p5p-msgid: 9703121551.AA07435@claudius.bfsec.bt.co.uk --- diff --git a/ext/DB_File/DB_File.pm b/ext/DB_File/DB_File.pm index d962b88..164021e 100644 --- a/ext/DB_File/DB_File.pm +++ b/ext/DB_File/DB_File.pm @@ -1,8 +1,8 @@ # DB_File.pm -- Perl 5 interface to Berkeley DB # # written by Paul Marquess (pmarquess@bfsec.bt.co.uk) -# last modified 6th Feb 1997 -# version 1.11 +# last modified 12th Mar 1997 +# version 1.12 # # Copyright (c) 1995, 1996, 1997 Paul Marquess. All rights reserved. # This program is free software; you can redistribute it and/or @@ -146,7 +146,7 @@ use vars qw($VERSION @ISA @EXPORT $AUTOLOAD $DB_BTREE $DB_HASH $DB_RECNO) ; use Carp; -$VERSION = "1.11" ; +$VERSION = "1.12" ; #typedef enum { DB_BTREE, DB_HASH, DB_RECNO } DBTYPE; $DB_BTREE = new DB_File::BTREEINFO ; @@ -326,6 +326,10 @@ module you should really have a copy of the Berkeley DB manual pages at hand. The interface defined here mirrors the Berkeley DB interface closely. +Please note that this module will only work with version 1.x of +Berkeley DB. Once Berkeley DB version 2 is released, B will be +upgraded to work with it. + Berkeley DB is a C library which provides a consistent interface to a number of database formats. B provides an interface to all three of the database types currently supported by Berkeley DB. @@ -1144,7 +1148,7 @@ destroyed. undef $db ; untie %hash ; -See L for more details. +See L for more details. All the functions defined in L are available except for close() and dbopen() itself. The B method interface to the @@ -1394,7 +1398,7 @@ F). =head2 The untie gotcha If you make use of the Berkeley DB API, it is is I strongly -recommended that you read L. +recommended that you read L. Even if you don't currently make use of the API interface, it is still worth reading it. @@ -1642,6 +1646,10 @@ Fixed fd method so that it still returns -1 for in-memory files when db Documented the untie gotcha. +=item 1.12 + +Documented the incompatibility with version 2 of Berkeley DB. + =back =head1 BUGS @@ -1658,7 +1666,10 @@ suggest any enhancements, I would welcome your comments. B comes with the standard Perl source distribution. Look in the directory F. -Berkeley DB is available at your nearest CPAN archive (see +This version of B will only work with version 1.x of Berkeley +DB. It is I yet compatible with version 2. + +Version 1 of Berkeley DB is available at your nearest CPAN archive (see L for a list) in F, or via the host F in F. Alternatively, check out the Berkeley DB home page at F. It diff --git a/ext/DB_File/DB_File.xs b/ext/DB_File/DB_File.xs index 796c5c6..93cf44aa 100644 --- a/ext/DB_File/DB_File.xs +++ b/ext/DB_File/DB_File.xs @@ -3,8 +3,8 @@ DB_File.xs -- Perl 5 interface to Berkeley DB written by Paul Marquess (pmarquess@bfsec.bt.co.uk) - last modified 6th Feb 1997 - version 1.11 + last modified 12th Mar 1997 + version 1.12 All comments/suggestions/problems are welcome @@ -38,6 +38,7 @@ 1.10 - Fixed fd method so that it still returns -1 for in-memory files when db 1.86 is used. 1.11 - No change to DB_File.xs + 1.12 - No change to DB_File.xs */