jdbc-starter

JDBC Starter

License

License

GroupId

GroupId

com.github.enesusta
ArtifactId

ArtifactId

jdbc-starter
Last Version

Last Version

1.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

jdbc-starter
JDBC Starter
Project URL

Project URL

https://github.com/enesusta/jdbc-starter
Source Code Management

Source Code Management

http://github.com/enesusta/jdbc-starter

Download jdbc-starter

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.enesusta/jdbc-starter/ -->
<dependency>
    <groupId>com.github.enesusta</groupId>
    <artifactId>jdbc-starter</artifactId>
    <version>1.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.enesusta/jdbc-starter/
implementation 'com.github.enesusta:jdbc-starter:1.0.5'
// https://jarcasting.com/artifacts/com.github.enesusta/jdbc-starter/
implementation ("com.github.enesusta:jdbc-starter:1.0.5")
'com.github.enesusta:jdbc-starter:jar:1.0.5'
<dependency org="com.github.enesusta" name="jdbc-starter" rev="1.0.5">
  <artifact name="jdbc-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.enesusta', module='jdbc-starter', version='1.0.5')
)
libraryDependencies += "com.github.enesusta" % "jdbc-starter" % "1.0.5"
[com.github.enesusta/jdbc-starter "1.0.5"]

Dependencies

compile (6)

Group / Artifact Type Version
org.xerial : sqlite-jdbc jar 3.30.1
com.github.enesusta : edevat jar 1.0.0
com.zaxxer : HikariCP jar 3.4.2
org.postgresql : postgresql jar 42.2.12
commons-dbcp : commons-dbcp jar 1.4
mysql : mysql-connector-java jar 8.0.18

test (2)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.3.2
org.hamcrest : hamcrest-all jar 1.3

Project Modules

There are no modules declared in this project.

javadoc

Install

<dependency>
  <groupId>com.github.enesusta</groupId>
  <artifactId>jdbc-starter</artifactId>
  <version>1.0.5</version>
</dependency>

Example:

JdbcConfiguration configuration = new JdbcConfiguration.JdbcConfigurationBuilder()
            .username("username")
            .password("password")
            .type(DatabaseType.POSTGRE)
            .host("localhost")
            .selectedDatabase("docker")
            .options(
                Arrays.asList(new JdbcOption(ConnectionOptions.CHARACTER_ENCODING, "utf8"))
            )
//            .jdbcUrl("jdbc:postgresql://localhost:5432/docker?characterEncoding=utf8")
            .build();

        jdbcDataSource = new HikariJdbcDataSource(configuration);
        dataSource = jdbcDataSource.getDataSource();

Versions

Version
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0