📦QIC template

Q.I.C Template Wiki Welcome to the Q.I.C Template Wiki! This page will guide you through setting up and running the Q.I.C Database Library template. Follow the steps below to get started.

Getting Started

Step 1: Clone the Repository

Clone the repository to your local machine by running the following command:

git clone https://github.com/Hrodebert17/QIC-template

This will download all the files needed to start using the Q.I.C template.

Step 2: Compile

You can compile using CMake, just do

cmake .
cmake --build .

Step 3: Run the Program

After compiling, run the program with the following command:

./qic_template

You should see output reflecting the creation of a database, a table, and the addition of records,

Step 4: Modify and Experiment

Open the main.cpp file and edit the example code to experiment with the following:

  • Add new tables with custom schemas.

  • Insert records into tables.

  • Retrieve and display table contents.

  • Explore other features of the Q.I.C library.

Features Demonstrated in the Template

  1. Creating a Table The included example demonstrates how to create a table named COMPANY with the following schema:

    • ID (Integer)

    • NAME (String)

    • AGE (Integer)

    • ADDRESS (String)

    • SALARY (Double)

  2. Inserting Records Example records are inserted into the COMPANY table.

  3. Saving Changes All in-memory changes are saved to the database file using the save() function.

Last updated