This repository contains a C++ program that demonstrates basic usage of SQLite to create and interact with a database. It is developed as part of a competency test for Libbitcoin, an organization participating in the Summer of Bitcoin. More details about the project can be found on the Summer of Bitcoin project ideas page.
The program creates a simple table called employees
with the following schema:
id
: INTEGER PRIMARY KEYname
: TEXT NOT NULLage
: INTEGER NOT NULL
Ensure that SQLite3 is installed on your system and that the library path is correctly configured for linking.
To compile and run the program, use the following command:
gcc -o table table.cpp -lsqlite3 && ./table