obviously u need to have installed

LIBPQXX

on ur system.

POSTGRESQL

is been used here

install postgresql using BREW from terminal and install pgadmin4 and basically postgresql from internet

  • To compile the code (on mac)
  • clang++ $(pkg-config --cflags --libs libpqxx) -std=c++17 db_connect.cpp -o db_connect

    ./db_connect (to run the code...replace db_connect with your program's name)

    Book shop Management system

    Overview

    This is a basic , beginner friendly project with features like CRUD operations.

    Table of contents

    BOOKS

    • Add books
    • Search books
    • Search books
    • update price and quantity of books
    • Delete books

    SUPPLIERS

    • Add supplier
    • Remove supplier
    • Search supplier By IDsupplier

    PURCHASE

    • place new order
    • View order
    • order status

    • Canceled order
    • Received order

    EMPLOYEE

    • ADD employee
    • Remove employee
    • Update employee details
    • Assign as manager

    MEMBERS

    Refresh(); basically refreshes the date of membership of member once date of membership ends.
    • Add member
    • Remove member
    • Refresh

    SALES

    • add sales
    • Total sales

    I haven't seen many resource on postgresql and C++ integerity for any Beginner friendly project like Management system so i made one just for absolute beginners. This basically teaches Lot more mainly about classes and postgresql and libpqxx

    can be improved a lot if any feel free to open issues and pull requests.