Skip to content

feat(sql): add sql-query fluent builder module#1232

Open
allornothingai wants to merge 26 commits intozio:mainfrom
allornothingai:feat/sql-query
Open

feat(sql): add sql-query fluent builder module#1232
allornothingai wants to merge 26 commits intozio:mainfrom
allornothingai:feat/sql-query

Conversation

@allornothingai
Copy link

Summary

This PR addresses the sql-query module requirement from #1216. It builds a fluent query builder utilizing SchemaExpr to generate type-safe Frags for SELECT, INSERT, UPDATE, and DELETE.

Note: This branch is built on top of PR #1224 by @987Nabil.

Changes

  • Implements Select, Update, Insert, and Delete fluent builders.
  • Provides ExprToSql to convert zio.blocks.schema.SchemaExpr abstract syntax trees directly into SQL string Frag and parameterized DbValues.
  • Includes SortOrder and SetClause extensions for SchemaExpr and Optic paths.
  • Provides comprehensive tests for basic operations.

987Nabil and others added 26 commits March 14, 2026 11:42
…oc aliases

These aliases are used by CI across ALL Scala versions (2.13, 3.3, 3.7).
The sql module only supports Scala 3.3+ (crossScalaVersions does not include 2.13).
This matches how other Scala-3-only modules (scope-examples, schema-examples)
are also excluded from these aliases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants