🚩Quick start

Here’s how to get started with Q.I.C in a matter of minutes!

Creating a Database

You can create a db with the following code, remember to create your db file before running the code or it wont work.

#include "qic.h"
#include <iostream>
#include <filesystem>

int main() {
    // Create a database instance
    data_base db;

    // Open an existing database file
    std::filesystem::path dbPath = "mydatabase.db";
    db.open_database(dbPath);
    
    std::cout << "Database opened successfully!" << std::endl;

    // Close the database
    db.close();
    std::cout << "Database closed and saved!" << std::endl;

    return 0;
}

Creating a table

Adding Data to the Table

Getting all the values from a table

Last updated