Skip to content
Snippets Groups Projects

Setup db connection

Merged Eirik Steira requested to merge setup-db-connection into dev
1 unresolved thread

Set up connection pool to remote database with HirakiCP

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
1 package NTNU.IDATT1002.database;
2
3 import com.zaxxer.hikari.HikariConfig;
4 import com.zaxxer.hikari.HikariDataSource;
5
6 import java.sql.Connection;
7 import java.sql.SQLException;
8
9 /**
10 * Class for connecting to the database. This will load configurations and create a connection pool.
11 */
12 public class DBConnection {
  • You have done a good job. The code way clean and explained everything that wasn't self explanatory.

  • Mads Lundegaard mentioned in commit a3763838

    mentioned in commit a3763838

  • Please register or sign in to reply
    Loading