BSD Ports

databases/cdb 0.75 DragonFly

Fast lookup database library & utilities

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
Categories
databases
Package size
16.0 KiB, 83.0 KiB installed

Description

cdb is a fast, reliable, lightweight package for creating and reading constant databases. Its database structure provides several features:

* Fast lookups: A successful lookup in a large database normally takes just two disk accesses. An unsuccessful lookup takes only one. * Low overhead: A database uses 2048 bytes, plus 24 bytes per record, plus the space for keys and data. * No random limits: cdb can handle any database up to 4 gigabytes. There are no other restrictions; records don't even have to fit into memory. Databases are stored in a machine-independent format. * Fast atomic database replacement: cdbmake can rewrite an entire database two orders of magnitude faster than other hashing packages. * Fast database dumps: cdbdump prints the contents of a database in cdbmake-compatible format.

cdb is designed to be used in mission-critical applications like e-mail. Database replacement is safe against system crashes. Readers don't have to pause during a rewrite.

Note for developers: packages that need to read cdb files should incorporate the necessary portions of the cdb library rather than relying on an external cdb library. (See WWW)

In the other systems

SystemPortVersion
DragonFlydatabases/cdb0.75
FreeBSDdatabases/cdb20251021
NetBSDdatabases/cdb20251021

Install

Binary package:

pkg install cdb

From DPorts:

cd /usr/dports/databases/cdb && make install clean

Dependencies

Configuration

No options to configure.

Service scripts
none

Message after installing

===>   NOTICE:

The cdb port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing