libdbi
« Back to VersTracker
Description:
Database-independent abstraction layer in C, similar to DBI/DBD in Perl
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Databases
Tags: database abstraction c-library sql development
Install: brew install libdbi
About:
Libdbi provides a database-independent abstraction layer for C applications, enabling developers to interact with various SQL databases using a single, consistent API. It functions similarly to the Perl DBI/DBD architecture, abstracting away the specific details of native database client libraries. This allows for greater code portability and flexibility when switching between or supporting multiple database systems.
Key Features:
  • Database-independent API for C
  • Supports multiple database drivers (DBDs)
  • Simplifies database connectivity and query execution
  • Promotes code portability across different SQL backends
Use Cases:
  • Developing C applications that need to support multiple database systems
  • Creating portable server-side software with database connectivity
  • Building abstraction layers for database interaction in embedded systems
Alternatives:
  • ODBC – Libdbi is a native C API, whereas ODBC is a standard interface that often requires an additional driver manager layer.
  • libpq / MySQL client libraries – Libdbi provides a unified interface, avoiding the need to write and maintain code specific to each database's native client library.
Version History
Detected Version Rev Change Commit
Sep 11, 2025 7:27am 0 VERSION_BUMP b1a247d3