Skip to content

SQL Types

Sonatype Nexus (Releases) Sonatype Nexus (Snapshots)

SADU has implementations for four different sql types. Simply import the artifact you need into your project.

dependencies {
    implementation("de.chojo.sadu", "sadu-postgresql", "<version>")
    implementation("de.chojo.sadu", "sadu-mariadb", "<version>")
    implementation("de.chojo.sadu", "sadu-mysql", "<version>")
    implementation("de.chojo.sadu", "sadu-sqlite", "<version>")
}

The type itself can be retrieved from the type class. Each typeclass provides one general getter via Type.get() and one by its name via Type.type().

Adds support for PostgreSQL database

implementation("de.chojo.sadu", "sadu-postgresql", "<version>")

Type Class: Postgres

Adds support for MariaDB database

implementation("de.chojo.sadu", "sadu-mariadb", "<version>")

Type Class: MariaDb

Adds support for MySQL database

implementation("de.chojo.sadu", "sadu-mysql", "<version>")

Type Class: MySql

Adds support for SqLite database

implementation("de.chojo.sadu", "sadu-sqlite", "<version>")

Type Class: SqLite