SQL Types¶
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
Type Class: Postgres
Adds support for MariaDB database
Type Class: MariaDb
Adds support for MySQL database
Type Class: MySql