> For the complete documentation index, see [llms.txt](https://hrodebert.gitbook.io/qic-database-ver-1.0.0/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hrodebert.gitbook.io/qic-database-ver-1.0.0/getting-started/qic-template.md).

# 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:

```bash
./qic_template
```

You should see output reflecting the creation of a database, a table, and the addition of records,&#x20;

#### 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.
