Skip to content

A basic abstract MySQL and SQL support for drivers, connection pooling builtin using HikariCP framework and polymorphism to inject delegate properties

License

Notifications You must be signed in to change notification settings

zkingboos/UniversalWrapper

Repository files navigation

UniversalWrapper

Codacy Badge

A universal jdbc wrapper, helps you to make queries easier, with the simplicity of the functional interfaces of java!

Summary

Installation

Using jitpack:

Maven

<repositories>
    <repository>
        <id>jitpack.io</id>
	<url>https://jitpack.io</url>
    </repository>
</repositories>

<dependencies>
    <!--just for sql wrapper (only compile sql not mysql, as in the previous version) (heavy)-->
    <dependency>
        <groupId>com.github.zkingboos.universalwrapper</groupId>
	<artifactId>sql-wrapper</artifactId>
	<version>VERSION</version>
    </dependency>

    <!--just for sql wrapper (only compile sql not mysql, as in the previous version) (light)-->
    <dependency>
        <groupId>com.github.zkingboos.universalwrapper</groupId>
	<artifactId>sql-wrapper-bukkit</artifactId>
	<version>VERSION</version>
    </dependency>
    
    <!--just mysql wrapper (heavy)-->
    <dependency>
        <groupId>com.github.zkingboos.universalwrapper</groupId>
        <artifactId>mysql-wrapper</artifactId>
        <version>VERSION</version>
    </dependency>

    <!--just mysql wrapper (light)-->
    <dependency>
        <groupId>com.github.zkingboos.universalwrapper</groupId>
        <artifactId>mysql-wrapper-bukkit</artifactId>
        <version>VERSION</version>
    </dependency>
</dependencies>

Gradle

repositories {
    maven { url = 'https://jitpack.io' }
}

dependencies {
    // Just sql-wrapper (Heavy)
    implementation 'com.github.zkingboos.universalwrapper:sql-wrapper:VERSION'

    // Just sql-wrapper (Light)
    implementation 'com.github.zkingboos.universalwrapper:sql-wrapper-bukkit:VERSION'
    
    // Just mysql-wrapper (Heavy)
    implementation 'com.github.zkingboos.universalwrapper:mysql-wrapper:VERSION'
    
    // Just mysql-wrapper (Light)
    implementation 'com.github.zkingboos.universalwrapper:mysql-wrapper-bukkit:VERSION'
}

Modules

Name Description
shared All shared sources for linking the components
sql-wrapper Sql provider compiled with all dependencies
sql-wrapper-bukkit Sql provider for bukkit applications, only includes the necessary dependencies
mysql-wrapper Mysql provider compiled with all dependencies
mysql-wrapper-bukkit Mysql provider for bukkit applications, only includes the necessary dependencies
docs The project documentation for github-pages
examples Examples for the most abstract cases

Documentation

You can see project's documentation here.

Usage

Look here for detailed examples!

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Contributors

zkingboos
zkingboos