-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 convenience functions for working with schemadiff objects #10238
Add convenience functions for working with schemadiff objects #10238
Conversation
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
@dbussink add a couple tests e.g. for |
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.
LGTM
Added something and following how |
Added tests look legit |
This adds a number of convenience methods to schemadiff that are useful when working with schema related objects and inspecting what a schema looks like. It avoids having to do some casts often when for example you only care about getting a table from a schema (and not views). The diff methods are useful when getting the underlying object so you don't have to grab it with `Statement()` and then cast it again to the real underlying `sqlparser` object. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
5f3c8e3
to
aa94010
Compare
This adds a number of convenience methods to schemadiff that are useful when working with schema related objects and inspecting what a schema looks like.
It avoids having to do some casts often when for example you only care about getting a table from a schema (and not views).
The diff methods are useful when getting the underlying object so you don't have to grab it with
Statement()
and then cast it again to the real underlyingsqlparser
object.Related Issue(s)
#10203
Checklist