Tags:
create new tag
view all tags

TDB

TDB is the tiny database from the Samba project. This contrib bundles it to make it easily installable for use with other TWiki extensions.

This Contrib installs a derivative of the Samba TDB (tiny database). This is a small, lightweight, reasonably fast database coded in C, that also happens to be very useable from Perl. The TDB shipped with this Contrib is a hybrid of tdb-1.0.6 and the tdb used by samba-3.0.21c. This was required because the developers of these packages have not kept them synchronised.

The package also includes all the header files required to use the database from C-code.

To use the database from perl, you should also install the perl interface (TDB_File, available from CPAN).

So what can you do if you have it? Here's a taster:

  my $tdb = TDB_File->open($filename, TDB_CLEAR_IF_FIRST) or die $!;
  $tdb->store(key => 'value') or die $tdb->errorstr;
  $tdb->traverse(sub { print "$_[0] -> $_[1]\n" });
See http://cpan.uwinnipeg.ca/htdocs/TDB_File/TDB_File.html for the full doc.

Note: this package was formerly bundled as part of WebDAVPlugin. If you install this package, WebDAVPlugin will work with it quite happily (and vice-versa).

Installation

The following steps are automated by the install script shipped with this module.

If you are installing as an administrator, make sure you don't already have tdb installed (it would be embarassing to overwrite an existing install used by Samba, for example!)

The distribution includes all you need to build and install it. Starting from your TWiki root directory:

cd lib/tdb
./configure
By default make install will now build the module and install the library in /usr/lib. If you can't write to /usr/lib, you can change the target directory like this:
./configure --prefix=/home/twiki/libs
but you will have to work out how to explain to Apache that it has to look there, if you are using the library with a CGI script.

Settings

    • Set SHORTDESCRIPTION = TDB is the tiny database from the Samba project. This contrib bundles it to make it easily installable for use with other TWiki extensions.

Info

Author: TWiki:Main/CrawfordCurrie http://c-dot.co.uk
Version: 11559 build 09:14:36 22 September 2006
Change History:  
  Split out of WebDAVPlugin
Other Dependencies:
NameVersionDescription
TDB_File>=0.90Trivial database perl interface, available from CPAN.
Perl Version: 5.005
License: GPL, as per licensing requirements of TDB
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/TdbContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/TdbContribDev

Acknowledgements

  • Thanks to the Samba and TDB projects for their excellent database!
Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatmd5 TdbContrib.md5 r4 r3 r2 r1 manage 0.1 K 2008-12-12 - 12:40 SopanShewale checksum file , Uploaded as a part of Release Process
Compressed Zip archivetgz TdbContrib.tgz r4 r3 r2 r1 manage 330.9 K 2008-12-12 - 12:40 SopanShewale See TdbContrib for details. Untar and run the installer script, Uploaded as a part of Release Process
Compressed Zip archivezip TdbContrib.zip r4 r3 r2 r1 manage 346.7 K 2008-12-12 - 12:40 SopanShewale See TdbContrib for details. Unzip and run the installer script , Uploaded as a part of Release Process
Unknown file formatext TdbContrib_installer r3 r2 r1 manage 5.3 K 2008-12-12 - 12:40 SopanShewale Installer Script, Uploaded as a part of Release Process
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2012-12-03 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.