Skip to content

feat: execute type-safe SQL writes - #13

Merged
omer-cengel merged 1 commit into
masterfrom
feature/execute-type-safe-sql-writes
Sep 17, 2026
Merged

omer-cengel merged 1 commit into
masterfrom
feature/execute-type-safe-sql-writes

Conversation

@omer-cengel

Copy link
Copy Markdown
Member

Summary

Add executable, type-safe methods for the supported basic single-table write-query subset, returning JDBC affected-row counts.

Changes

  • Analyze declared INSERT, UPDATE, and DELETE writes against schema tables.
  • Preserve logical Java parameter order and textual JDBC binding order.
  • Generate resultless int-returning methods that delegate to QueryExecutor.execute.
  • Execute writes through JDBC with existing resource handling and exception translation.
  • Add generated-source and H2-backed coverage for INSERT, out-of-order UPDATE, and DELETE behavior.

Scope and non-goals

Support is limited to one unaliased table, explicit single-row placeholder-only INSERT values, direct-placeholder UPDATE assignments, and the existing supported WHERE predicate forms. RETURNING clauses, generated keys, batches, upserts, transactions, computed assignments, aliases, joins, subqueries, multi-table writes, and generalized unsupported-syntax validation remain excluded.

@omer-cengel
omer-cengel merged commit 59254cb into master Sep 17, 2026
6 checks passed
@omer-cengel
omer-cengel deleted the feature/execute-type-safe-sql-writes branch September 17, 2026 21:35
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.

1 participant