Skip to content

Raw table improvements#371

Merged
simolus3 merged 2 commits intomainfrom
raw-table-updates
Mar 2, 2026
Merged

Raw table improvements#371
simolus3 merged 2 commits intomainfrom
raw-table-updates

Conversation

@simolus3
Copy link
Contributor

This adds support for new raw table features for version 0.4.11 of the core extension. For more context, also see the Kotlin PR.

This adds the RawTableSchema class containing the name of a raw table with additional options. It can be passed to the new RawTable.inferred constructor, which then makes the put and delete statements optional because they can be inferred from the database schema.

This also adds RawTable.clear, which has been added in the previous core extension update.

Because a RawTableSchema also contains options that are shared with regular JSON-based tables, I've extracted them into a shared class. To keep backwards-compatibility (and especially to keep Table constructors const), I've made Table extend the new TableOptions class. I've also deprecated the ability to extend Table, the class is really just a descriptive struct and we don't want users to potentially override methods like validate.

Copy link
Contributor

@stevensJourney stevensJourney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy with the changes :shipit:

@simolus3 simolus3 merged commit cb4e017 into main Mar 2, 2026
9 of 10 checks passed
@simolus3 simolus3 deleted the raw-table-updates branch March 2, 2026 08:06
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.

2 participants