GithubHelp home page GithubHelp logo

jdbc-alura's Introduction

Build Status

Java and JDBC: Working with a Database

Java Database Connectivity (JDBC) is an application programming interface (API) for the programming language Java, which defines how a client may access a database. It is a Java-based data access technology used for Java database connectivity. It is part of the Java Standard Edition platform, from Oracle Corporation. It provides methods to query and update data in a database, and is oriented towards relational databases.

This repository contains some examples of how to work with a database using Java and JDBC. Below are listed the topics covered:

  • Inserting and removing data from database;
  • SQL Injection and Prepared Statement;
  • Transaction: commit and rollback;
  • Connection Pool and Datasources;
  • Isolating data access and DAO (Data Access Object);
  • Relationships, optimizing N+1 and ORM tools.

How to run all tests successfully

Execute the following command to up a MySQL instance:

docker run -d -p 3306:3306 --name mysql-jdbc-alura -e MYSQL_ROOT_PASSWORD=root rafaelpieri/jdbc-alura

Once the database is up and running, execute the following command to run the automatic tests: mvn test

How to build MySQL docker image locally

Go to docker/mysql folder and execute the following command:

docker build -t mysql-jdbc-alura .

jdbc-alura's People

Contributors

rafael-pieri avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.