Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pdr0alva/cplusplus-crud-application
- Owner: pdr0alva
- Created: 2024-10-13T16:41:28.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-17T03:43:42.000Z (3 months ago)
- Last Synced: 2024-12-18T09:19:37.300Z (16 days ago)
- Topics: cpp-programming, wxwidgets
- Language: C++
- Homepage:
- Size: 2.83 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CRUD C++ System with Graphic User Interface
A C++ CRUD Application with
WxWidgets
for GUI andSOCI
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)
> );
> ```