Skip to content

Conversation

@stephencelis
Copy link
Member

This addresses a shortcoming of tables with generated columns.

@remimarsal I believe this addresses what you brought up on #101. Wanna test it out?

@stephencelis stephencelis requested a review from mbrandonw July 11, 2025 17:47
@remimarsal
Copy link
Contributor

@stephencelis amazing! it does fix the issue on my side and enforces let in the schema declaration

@stephencelis stephencelis merged commit c4bef13 into main Jul 11, 2025
3 checks passed
@stephencelis stephencelis deleted the generated-column-fixes branch July 11, 2025 18:56
@remimarsal
Copy link
Contributor

@stephencelis I just noticed a runtime error on update Caught error: update(SQLite error 1: cannot UPDATE generated column ... with Event.update(event).execute(db)

@stephencelis
Copy link
Member Author

@remimarsal Thanks for the catch! See #112.

coenttb pushed a commit to coenttb/swift-structured-queries-postgres that referenced this pull request Oct 14, 2025
* Support `RETURNING` clause for generated columns

* wip

* wip

* wip

* wip

* wip
coenttb pushed a commit to coenttb/swift-structured-queries-postgres that referenced this pull request Oct 15, 2025
* Support `RETURNING` clause for generated columns

* wip

* wip

* wip

* wip

* wip
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.

4 participants