Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Light-Weight Database System for C++

Tags:

c++

database

I need to use light-weight database because i have limited resource for application.

So i'm searching a light-weight database which i can use with C++, which is easy to manage, fast to retrieve data and uses up limited amount of resource.

I have found SqlLite in the internet. But before i start to implement my project, i want to get your recommendation on this topic.

Any help will be appreciated.

like image 312
ibrahimyilmaz Avatar asked Apr 19 '11 12:04

ibrahimyilmaz


People also ask

Which is the lightweight database?

SQLite is very lightweight compared to other database management systems like SQL Server, or Oracle. It has an in-memory library that you can call and use directly without installation or configuration. You do not require any dedicated server to store database. The database is stored in the hard disk of a computer.

Which database is used by C?

Oracle RDBMS The database is a relational database that was written using the C-family of programming languages – namely, C, C++, and Java.

Does C have database?

For C projects, the database schema is specified in the eXtremeDB Data Definition Language (DDL) which identifies the database, defines each data class, its elements, its relationship to other data classes, and data access methods.


1 Answers

You've already find your best option in my opinion: SQLite.

You could technically use something even lighter like plain old file system with random file access. But you will miss two key points:

  1. Easy creation of indexes on your data
  2. An awesome language to get and manipulate data: SQL

SQLite will only add a couple of kilobytes to your executable and it's pretty lightweight. Plus, its API is relatively easy to use.

like image 66
Pablo Santa Cruz Avatar answered Oct 12 '22 13:10

Pablo Santa Cruz