Skip to main content

Foundations JDBC

A JDBC wrapper library that makes JDBC actually usable. Every column type modeled correctly across all supported databases, with full roundtrip support.

Getting Started

Add the dependency to your project:

implementation("dev.typr.foundations:foundations-jdbc:version")

Language-specific DSL modules:

// Kotlin DSL
implementation("dev.typr.foundations:foundations-jdbc-dsl-kotlin:version")

// Scala DSL
implementation("dev.typr.foundations:foundations-jdbc-dsl-scala_3:version")

Core Concepts

  • Row Types & Parsers — Define how to read rows from a ResultSet with composable, type-safe parsers.
  • Result Sets — Handle the full lifecycle of reading from a ResultSet.
  • Fragments — Build SQL safely with type-checked parameters.
  • Transactors — Manage connections and transactions.