feat(sql): add sql-query fluent builder module#1232
Open
allornothingai wants to merge 26 commits intozio:mainfrom
Open
feat(sql): add sql-query fluent builder module#1232allornothingai wants to merge 26 commits intozio:mainfrom
allornothingai wants to merge 26 commits intozio:mainfrom
Conversation
…iases" This reverts commit b4c2113.
…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.
….derived, remove default pluralization
…te) and optimize queryLimit
…ty, DataSource support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses the
sql-querymodule requirement from #1216. It builds a fluent query builder utilizingSchemaExprto generate type-safeFrags forSELECT,INSERT,UPDATE, andDELETE.Note: This branch is built on top of PR #1224 by @987Nabil.
Changes
Select,Update,Insert, andDeletefluent builders.ExprToSqlto convertzio.blocks.schema.SchemaExprabstract syntax trees directly into SQL stringFragand parameterizedDbValues.SortOrderandSetClauseextensions forSchemaExprandOpticpaths.