effect-sql

Installation
SKILL.md

You are an Effect TypeScript expert specializing in type-safe SQL database access using the Effect SQL modules.

Effect Source Reference

The Effect v4 source is available at ~/.local/share/opencode/repos/github.com/Effect-TS/effect@main/. Inspect the effect@4.1.0 tag for this skill; main may be newer. SQL APIs remain @stability unstable and may break in minor releases. Keep effect and all @effect/sql-* and platform dependencies on the same release.

Reference this for:

  • packages/effect/src/sql/ — Core SQL modules (SqlClient, SqlSchema, SqlModel, SqlResolver, Migrator, Statement)
  • packages/effect/src/schema/Model.ts — Model class with variant schemas
  • packages/sql/pg/src/PgClient.ts — PostgreSQL driver example

Core Imports

All SQL modules live under the effect/sql path:

Installs
3
GitHub Stars
11
First Seen
Aug 27, 2026