Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pdr0alva/cplusplus-crud-application

A C++ application demonstrating communication with a MySQL database via the SOCI library, with a user-friendly interface built using wxWidgets. The application showcases data retrieval and manipulation, with a focus on cross-platform compatibility
https://github.com/pdr0alva/cplusplus-crud-application

cpp-programming wxwidgets

Last synced: 16 days ago
JSON representation

A C++ application demonstrating communication with a MySQL database via the SOCI library, with a user-friendly interface built using wxWidgets. The application showcases data retrieval and manipulation, with a focus on cross-platform compatibility

Awesome Lists containing this project

README

        

CRUD C++ System with Graphic User Interface




A C++ CRUD Application with WxWidgets for GUI and SOCI for MySQL Queries



## Application Dependences

- WxWidgets
- SOCI
- MySQL Connector/C++ (soci dependence)
- MySQL Community Server

> [!WARNING]
> You need to change `db`, `name`, `password` and `host`, in `data::db::DAO::connection_string` (file `/data/include/DAO.h`) to match your own database created.

After all that installed, just run CMAKE and build the application.


## MySQL Database Details

The CRUD operations occur in a table, DESCRIBED:

| Field | Type | Null | Key | Default | Extra |
|:---:|:----------:|------|-----|---------|----------------|
| id | int | NO | PRI | NULL | auto_increment |
| name | varchar(255) | NO | | NULL | |
| cpf | varchar(11) | YES | | NULL | |
| age | int | NO | | NULL | |


> [!TIP]
> MySQL Query to create that table:
> ```mysql
> CREATE TABLE People(
> id INT NOT NULL AUTO_INCREMENT,
> name varchar(255) NOT NULL,
> cpf varchar(11), age INT NOT NULL,
> PRIMARY KEY (id)
> );
> ```