Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/minnukota381/jdbc-crud-application
This project demonstrates basic CRUD (Create, Read, Update, Delete) operations using JDBC (Java Database Connectivity) with different databases like MySQL, PostgreSQL, and more. It provides a simple yet comprehensive example of how to interact with databases in Java using JDBC.
https://github.com/minnukota381/jdbc-crud-application
java jdbc mysql postgresql sql
Last synced: about 2 months ago
JSON representation
This project demonstrates basic CRUD (Create, Read, Update, Delete) operations using JDBC (Java Database Connectivity) with different databases like MySQL, PostgreSQL, and more. It provides a simple yet comprehensive example of how to interact with databases in Java using JDBC.
- Host: GitHub
- URL: https://github.com/minnukota381/jdbc-crud-application
- Owner: minnukota381
- License: gpl-3.0
- Created: 2024-07-15T04:28:25.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-09-14T03:59:15.000Z (4 months ago)
- Last Synced: 2024-09-14T16:33:08.337Z (4 months ago)
- Topics: java, jdbc, mysql, postgresql, sql
- Language: Java
- Homepage:
- Size: 45.9 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JDBC CRUD Operations with Multiple Databases
This project demonstrates basic CRUD (Create, Read, Update, Delete) operations using JDBC (Java Database Connectivity) with different databases like MySQL, PostgreSQL, and more. It provides a simple yet comprehensive example of how to interact with databases in Java using JDBC.
## Features
- **CRUD Operations:** Demonstrates how to perform Create, Read, Update, and Delete operations on databases.
- **Database Support:** Includes examples for MySQL and PostgreSQL databases. Easily extendable for other databases.
- **Reusable DAOs:** Uses Data Access Objects (DAOs) for each database interaction, ensuring clean and modular code.## Technologies Used
- Java
- JDBC
- MySQL
- PostgreSQL## Setup Instructions
1. **Clone the repository:**
```bash
git clone https://github.com/minnukota381/jdbc-crud-application.git
cd jdbc-crud-application
```2. **Import into your IDE:**
- Import the project into your preferred Java IDE (like Eclipse or IntelliJ IDEA).3. **Configure Database:**
- Create databases named `jdbc_mysql_db` and `jdbc_postgres_db` in MySQL and PostgreSQL respectively.
- Update `src/main/resources/config.properties` with your database credentials.4. **Run the Application:**
- Build and run the project from your IDE.
- The application will perform CRUD operations on both MySQL and PostgreSQL databases.## Usage
- Each database operation is encapsulated within its own DAO class (`UserDAO`, `ProductDAO`, etc.).
- Modify the DAO classes as needed for your specific database schema and requirements.## Contributing
Contributions are welcome! If you'd like to enhance the project, follow these steps:
1. Fork the project.
2. Create your feature branch (`git checkout -b feature/AmazingFeature`).
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`).
4. Push to the branch (`git push origin feature/AmazingFeature`).
5. Open a pull request.## License
Distributed under the MIT License. See `LICENSE` for more information.