Deutsch   English   Fran├žais   Italiano  

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!!!!!ucberkeley!!agate!not-for-mail
From: "Stefan Vogel" <>
Newsgroups: comp.lang.tcl.announce
Subject: ANNOUNCE: Tgdbm (Version 0.5)
Followup-To: comp.lang.tcl
Date: Tue, 20 Jan 2004 18:21:50 +0000 (UTC)
Organization: -
Lines: 52
Message-ID: <>
Reply-To: <>
X-Trace: 1074622910 20256 (20 Jan 2004 18:21:50 GMT)
NNTP-Posting-Date: Tue, 20 Jan 2004 18:21:50 +0000 (UTC)
X-Original-Priority: 3 (Normal)
X-Original-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
X-OriginalArrivalTime: 20 Jan 2004 14:51:34.0233 (UTC) FILETIME=[E5D76C90:01C3DF64]
X-Scan-Signature: 969d22792de484a908556a012cab1227
X-Processing-Note: Emailed submission
X-Auth: PGPMoose V1.1 PGP comp.lang.tcl.announce
User-Agent: slrn/ (Linux)

I hereby announce Tgdbm and Qgdbm (version 0.5).

    Tgdbm is a wrapper for  the GNU-version of dbm (gdbm) which stores
key/value-pairs in cross-platform-files by using extendible hashing.

    Qgdbm is  build on top of  Tgdbm and provides a  convenient way to
store and retrieve data in an tclish- SQL-like style. Qgdbm is written
in pure Tcl-Code and can be used to store small/medium amounts of data
in table-files.
Qgdbm provides  high-level commands for creating,  dropping tables and
users and for manipulating rows of data (e.g.: insert, delete, ...).

Changes from version 0.4:
    You can  now "attach" an  array-variable to the  gdbm-handle. This
allows persistant tcl-arrays. The Tcl-Array-Commands are used to store
or retrieve entries from a gdbm-file.

A simple example would be:
gdbm_open -writer -sync -array airports test.gdbm
set airports(PAR) Paris ;# will store or update the key/value to test.gdbm

# add/update some more data
array set airports {
  ADD "Addis Abeba"
  FFM "Frankfurt"

# print value (gdbm-file and array is synchronized)
puts "FFM: [airports fetch FFM] / $airports(FFM)"
unset airports          ;# this will close test.gdbm
                        ;# this could have be done with unset airportArray

The distribution contains  a simple gdbm-viewer (tests/demo.tcl) which
uses Dr.  Casa Nemethi's Tablelistwidget  (Thanks to Dr.  Casa Nemethi
for this cool widget).

The distribution (Tgdbm  and windows-port of gdbm 1.8.3)  can be found

This was  a quick  release, so  don't hesitate to  contact me  for any
hints, bugs, improvement. 

Stefan Vogel
stefan dot vogel at avinci dot de

[[Send Tcl/Tk announcements to
  Announcements archived at
  Send administrivia to
  Tcl/Tk at ]]