PostgreSQL Support#42
Merged
ez-plugins merged 4 commits intomainfrom Apr 22, 2026
Merged
Conversation
- Add PostgreSqlDialect extending AbstractSqlDialect: double-quote identifier quoting, supportsReturning()=true, appendConditionFragment override for ILIKE/NOT ILIKE - Register SqlDialect.POSTGRESQL constant in SqlDialect interface - Add ILIKE and NOT_ILIKE to Operator enum (PostgreSQL-only operators) - Add supportsReturning() hook to AbstractSqlDialect; renderDelete() now appends RETURNING clause when the hook returns true
- Add returningColumns field + getter/setter to Query - DeleteBuilder.returning(String... columns): passed through Query to AbstractSqlDialect.renderDelete() via supportsReturning() hook - InsertBuilder.returning(String... columns): appended inline to SQL - UpdateBuilder.returning(String... columns): appended inline to SQL
- QueryBuilder.whereILike(column, value): ILIKE condition with AND connector - QueryBuilder.orWhereILike(column, value): ILIKE condition with OR connector - SelectBuilder.whereILike(column, value): ILIKE condition with AND connector (follows existing whereLike pattern; no orWhere* in SelectBuilder) Rendered correctly only with SqlDialect.POSTGRESQL
… 1.1.0 - PostgreSqlDialectTest (14 tests): identifier quoting, ILIKE/NOT ILIKE rendering, RETURNING on DELETE/INSERT/UPDATE, dialect isolation - SqlDialectTest: add postgresqlDialectIsSingleton() test - pom.xml: bump version 1.0.7 -> 1.1.0 (minor: new public API surface)
Contributor
Author
|
Solves #22 |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
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.
This update has been in focus in adding PostgreSQL support.
PostgreSQL dialect with ILIKE and RETURNING support
PostgreSqlDialectextendingAbstractSqlDialect:double-quote identifier quoting,
supportsReturning()=true,appendConditionFragmentoverride for ILIKE/NOT ILIKESqlDialect.POSTGRESQLconstant inSqlDialectinterfacesupportsReturning()hook toAbstractSqlDialect;renderDelete()now appends RETURNING clause when the hook returns trueRETURNING clause support to DML builders
returningColumnsfield + getter/setter toQueryDeleteBuilder.returning(String... columns): passed throughQueryto
AbstractSqlDialect.renderDelete()viasupportsReturning()hookInsertBuilder.returning(String... columns): appended inline to SQLUpdateBuilder.returning(String... columns): appended inline to SQLwhereILike/orWhereILikebuilder methodsQueryBuilder.whereILike(column, value): ILIKE condition with AND connectorQueryBuilder.orWhereILike(column, value): ILIKE condition with OR connectorSelectBuilder.whereILike(column, value): ILIKE condition with AND connector(follows existing
whereLikepattern; noorWhere* inSelectBuilder)