TDB(3)

πŸ“¦
version 1.4.15+samba4.24.7 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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:


🫢 This one came out of Samba, dated Aug 16, 2000 β€” yes it's a whole adult now, and it's still slaying. Mwah. πŸ’‹ βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’