https://github.com/z1skgr/jdbc-postgre
Link db to java framework
https://github.com/z1skgr/jdbc-postgre
eclipse-ide java jdbc jdbc-connector oracle postgres sql-l
Last synced: 7 months ago
JSON representation
Link db to java framework
- Host: GitHub
- URL: https://github.com/z1skgr/jdbc-postgre
- Owner: z1skgr
- Created: 2020-11-23T02:30:44.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-27T11:20:26.000Z (11 months ago)
- Last Synced: 2025-01-23T09:11:30.050Z (9 months ago)
- Topics: eclipse-ide, java, jdbc, jdbc-connector, oracle, postgres, sql-l
- Language: Java
- Homepage:
- Size: 4.69 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DB/JDBC
> Communication PostgreSQL with external java platform
## Table of contents
* [General Info](#general-information)
* [Features](#features)
* [Technologies Used](#technologies-used)
* [How to run](#how-to-run)
* [Acknowledgements](#acknowledgements)## General Information
_JDBC (J ava D ata B ase C onnectivity)_ is a standard Java API for database and java language connection). In this project, we implement a java project to link a database (implemented in postgreSQL) and build an interface between them.## Features
1. Opening of Conciliation / Validation.
2. Presentation of a detailed student score based on A.M.
3. Change of score based on A.M. and course code. The change will concern the most recent course run
4. Back up on a different basis to the same server[^1].## Technologies Used
* Java IDE environment ([Eclipse](https://www.eclipse.org/downloads/packages/) implemented)
* [jdbc driver](https://jdbc.postgresql.org/download/)
* PostgreSQL/pgAdmin
* Install [postgreSQL](https://www.postgresql.org/download/) using required steps
* Java code configured for database superuser password: `postgres`
* Using Quick Links on pgAdmin gui, add new server
* On general tab, add `postgres`
* On connection tab->Host name, [^3]
* Hostname -> `localhost`
* port -> `5432`
* username -> `postgres`
* password -> `postgres`
* On `postgres` database -> Restore `dbwithmanystudents`
## How to run
1. Make a new java project in IDE.
2. Build a '.db' file or clone the one in the archive [^2]
2. Import `java.sql` libraries.
3. Create a connection with database (_driverManager.getConnection(url)_)
4. Build and run.## Acknowledgements
- This project was created for the requirements of the lesson Databases.[^1]: It will be given as input the name of the table and the name of the base to be created the copy of the table.
[^2]: On file `querries` you can see database samples
[^3]: db_Connect has arguments ip, port, database name, username, password with these names