-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add _updateSchema functionality #5003
Conversation
@@ -667,6 +667,8 @@ classes: | |||
read_group: () -> Group& | |||
duplicate: () -> TransactionRef | |||
|
|||
update_schema: '(schema: std::vector<ObjectSchema>, version: uint64_t, migration_function: Nullable<std::function<(old_realm: SharedRealm, new_realm: SharedRealm, new_schema_handle: Schema&) -> void>>, initialization_function: Nullable<std::function<(realm: SharedRealm) -> void>>, in_transaction: bool) -> void' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
considering this is just being set to null, could I set those functions to just be regular Nullable<() -> void>
arguments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the generated C++ would like that .. cc @RedBeard0531?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I played around with this just now and it does seem like this would not work. So I will just leave it this way, if this ends up being jarring we could introduce type aliases but it's not that much longer than other functions like this.
9f0b01b
to
4dd4f37
Compare
4dd4f37
to
4bcb942
Compare
What, How & Why?
Add the ability to update schema to the bindgen repository.
This closes #4959
☑️ ToDos
Compatibility
label is updated or copied from previous entryCOMPATIBILITY.md
package.json
s (if updating internal packages)Breaking
label has been applied or is not necessaryIf this PR adds or changes public API's: