TDB(3)
π TDB β the trivial database, bestie π
okay so this is the tdb manual page, from the Linux Programmer's Manual (section 3, library calls, iykyk π«Ά).
β¨ NAME β¨
tdb β the trivial database π like literally that's the name, it's not being shady, it's just honest
πΈ SYNOPSIS πΈ
A database that's similar to gdbm but β and this is the whole glow-up β it allows multiple simultaneous writers. π
π¦ DESCRIPTION π¦
So this is a simple database API, no cap. π
It was inspired by the realisation that in Samba there were likeβ¦ several ad-hoc bits of code that were basically all just implementing small databases for sharing structures between parts of Samba. Which is fine, but it's giving copy-paste energy, bestie. π And when the author was about to add another one, it hit: okay, a generic database module was clearly called for, to replace all the ad-hoc bits. Periodt. β¨
The interface was based on gdbm β based on, not is, okay, stay with me β because gdbm couldn't actually be used here. Why? Because we need to be able to have multiple writers to the databases at one time. π«Ά And gdbm said no. So tdb said yes. Main character energy fr fr. π
π AUTHORS π
- Software: Andrew Tridgell
<tridge@linuxcare.com>and Luke Kenneth Casson Leighton - Man page: Ben Woodard
<ben@valinux.com>
Shoutout to the icons who built this and the icon who documented it. π
π SEE ALSO π
The whole tdb cinematic universe, bestie β go read these next, they're all linked up:
gdbm(3)tdb_open(3)tdb_close(3)tdb_delete(3)tdb_error(3)tdb_exists(3)tdb_fetch(3)tdb_firstkey(3)tdb_store(3)tdb_traverse(3)tdb_lockall(3)tdb_lockkeys(3)tdb_chainlock(3)
π«Ά This one came out of Samba, dated Aug 16, 2000 β yes it's a whole adult now, and it's still slaying. Mwah. π β¨ππ¦πΈπ
π¦ where this page comes from
- debian trixie: libtdb-dev 2:1.4.13+samba4.22.10+dfsg-0+deb13u2 Β· GPL-3.0-or-later
- debian trixie: libtdb-dev 2:1.4.13+samba4.22.11+dfsg-0+deb13u1 Β· GPL-3.0-or-later
- ubuntu questing: libtdb-dev 2:1.4.13+samba4.22.3+dfsg-4ubuntu2
- ubuntu questing: libtdb-dev 2:1.4.13+samba4.22.3+dfsg-4ubuntu2.4
- ubuntu resolute: libtdb-dev 2:1.4.14+samba4.23.6+dfsg-1ubuntu2 Β· GPL-3.0-or-later
- ubuntu resolute: libtdb-dev 2:1.4.14+samba4.23.6+dfsg-1ubuntu2.2 Β· GPL-3.0-or-later
- ubuntu stonking: libtdb-dev 2:1.4.15+samba4.24.7+dfsg-1ubuntu1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms