Suvarna Garge (Editor)

Database Management Library

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Developer(s)
  
Rodrigo C. O. Rocha

Type
  
Embedded RDBMS

Written in
  
C++

Initial release
  
July 2, 2010 (2010-07-02)

Stable release
  
1.0 / July 2, 2010; 6 years ago (2010-07-02)

License
  
GNU General Public License

Database Management Library (DBL) is a relational database management system (RDBMS) contained in a C++ programming library. The DBL source code is available under the terms of the GNU General Public License.

Contents

DBL was fully developed within two weeks, as a holiday programming project.

It aims to be easy and simple to use for C++ programming.

Design

DBL is a library and becomes an integral part of the application program. Unlike client–server model database management systems that are standalone process with which the application program communicates. The application software uses DBL's functionality through function calls.

Creating a simple database

This is a basic program that creates a simple database. However, as this task must be done usually once, it can be done by the DBL command-line interface.

  1. include<iostream.h>

int main() {

database db("mydatabase"

Class database

This class stores the database name and its tables. The main functions are:

Useful functions that use the class database are:

Class table

This class stores the table name and its structure, the columns of the table. The main functions are:

Useful functions that use the class table are:

Class row

This class stores the columns of the table and the data to be stored in the data file. The main functions are:

Useful functions that use the class row are:

Class storage

This class stores the column and a value for that column. The main functions are:

Useful functions that use the class storage are:

Class column

This class stores the name and the structure of a column. The main functions are:

Class index

This class stores the indexes of a table. The main functions are:

Useful functions that use the class index are:

DBL command-line interface

By the DBL command-line interface program one can create a database, a table, and add columns to this table, besides other operations such as printing.

References

Database Management Library Wikipedia