Skip to content

Raw table improvements#371

Open
simolus3 wants to merge 1 commit intomainfrom
raw-table-updates
Open

Raw table improvements#371
simolus3 wants to merge 1 commit 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.

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

Comments