Skip to main content
Version: 2.0.x

Introduction to ZIO JDBC

ZIO JDBC is a ZIO library for JDBC access, providing a small, unopinionated, and ergonomic foundation for directly interacting with JDBC.

Research CI Badge Sonatype Releases Sonatype Snapshots javadoc ZIO JDBC

  • Idiomatic ZIO 2.0 interface to JDBC
  • Secure, with protection against SQL-injection
  • Fully integrated with core libraries including ZIO Schema, ZIO Config, ZIO Logging

ZIO JDBC provides the following components:

  • A SQL interpolator to prevent SQL injection attacks
  • A connection pool powered by ZIO's async, resource-safe pool
  • Lightweight decoding values from result sets
  • Lightweight encoding values into SQL fragments for INSERT
  • Integration with ZIO Schema, ZIO Config, and ZIO Logging
  • Built-in metrics