Index
Saferis is a type-safe, resource-safe SQL client for Scala 3 and ZIO. Every example on this site is a Specular DocSpec: it asserts under zio-test and runs against a live PostgreSQL database (Testcontainers) when the site is built.
Install
libraryDependencies += "rocks.earlyeffect" %% "saferis" % "0.19.1"Documentation
Continue with:
- Getting Started
- Core Concepts
- SQL Injection Prevention
- Type-Safe Capabilities
- Error Handling
- Statement Timeouts
- Retryable Errors
- Data Definition Layer (DDL)
- Foreign Key Support
- Schema Validation
- Dialect System
- Data Manipulation Layer (DML)
- Query Builder
- Subqueries
- Aggregate Functions
- Conditional Upsert DSL
- Streaming with ZStream
- Paged Streaming
- Type Support
- Query Execution Methods