Skip to content

Chore: update dialect support of RETURNING keyword to be per operation#59

Merged
VoidClancy merged 3 commits into
masterfrom
runtime
Jul 22, 2026
Merged

Chore: update dialect support of RETURNING keyword to be per operation#59
VoidClancy merged 3 commits into
masterfrom
runtime

Conversation

@VoidClancy

Copy link
Copy Markdown
Owner

1- add SupportsInsert/Update/DeleteReturning instead of SupportsReturning to be per operation, in case a dialect does not support for all (PG and Sqlite does)

2- update usage of SupportsReturning to use the new defined per-operation field

3- update model_count and model_query templates to use d.client.query instead of calling prepare and stmt.QueryRowContext, the d.client.query is already a wrapper that calls that under the hood and allows logging, for consistency

1- add SupportsInsert/Update/DeleteReturning instead of SupportsReturning to be per operation, in case a dialect does not support for all (PG and Sqlite does)

2- update usage of SupportsReturning to use the new defined per-operation field

3- update model_count and model_query templates to use d.client.query instead of calling prepare and stmt.QueryRowContext, the d.client.query is already a wrapper that calls that under the hood and allows logging, for consistency
@VoidClancy
VoidClancy merged commit 7c9398d into master Jul 22, 2026
7 checks passed
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