awsdocs /
aws-doc-sdk-examples
Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.
Loading repository data…
viniciusvk1 / repository
This repository contains a Java project that demonstrates how to perform basic CRUD (create, read, update, and delete) operations in a MySQL database using JDBC. The project is a desktop application with a graphical user interface (GUI) that allows the user to register, query, update, and delete customer information.
This repository contains a Java project with basic CRUD (Create, Read, Update, and Delete) operations using a connection to the MySQL database.
Technologies used in this project:
Requirements:
To use the project, follow these steps:
Download the repository in ZIP format or clone the project using the following SSH code:
git clone git@github.com:viniciusvk1/Java-CRUD-with-MySQL-Connection.git
Open the project in your preferred IDE.
Import the MySQL connection library (mysql-connector-java-8.0.23.jar) into your project.
Create a MySQL database named "db_sales" and execute the following SQL script to create the "clients" table:
CREATE TABLE clients (
id INT NOT NULL AUTO_INCREMENT,
name VARCHAR(255) NOT NULL,
rg VARCHAR(15) NOT NULL,
cpf VARCHAR(15) NOT NULL,
email VARCHAR(100) NOT NULL,
phone VARCHAR(15) NOT NULL,
mobile VARCHAR(15) NOT NULL,
zip_code VARCHAR(10) NOT NULL,
address VARCHAR(255) NOT NULL,
number INT NOT NULL,
complement VARCHAR(255) NULL,
neighborhood VARCHAR(100) NOT NULL,
city VARCHAR(100) NOT NULL,
state VARCHAR(2) NOT NULL,
PRIMARY KEY (id)
);
Change the database access credentials in the ConnectionFactory.java file to the credentials of your MySQL environment:
return DriverManager.getConnection("jdbc:mysql://<your_end_ip>/<your_database>", "<your_user>", "<your_password>");
Run the project and test the CRUD operations using the graphical interface.
Images of the program running
Open Source
This project is open source software under the MIT license. This means that anyone can use it, modify it, and contribute to the project. We are happy to receive contributions from the community and thank everyone who helps improve our project in advance!
Copyright (c) 2023, Vinicius Almeida
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Selected from shared topics, language and repository description—not editorial ratings.
awsdocs /
Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.
Vishal-raj-1 /
This Repository contain awesome vanilla JavaScript projects.
smv1999 /
This repository contains all the popular Competitive Programming and DSA questions with solutions for your Coding Interview Preparation.
thepranaygupta /
A repository that contains all the Data Structures and Algorithms concepts and their implementation in several ways, programming questions and Interview questions. The main aim of this repository is to help students who are learning Data Structures and Algorithms or preparing for an interview.
sukritishah15 /
This repository contains codes for various data structures and algorithms in C, C++, Java, Python, C#, Go, JavaScript, PHP, Kotlin and Scala
james34602 /
Audio DSP effects build on Android system framework layer. This is a repository contains a pack of high quality DSP algorithms specialized for audio processing.