-
Notifications
You must be signed in to change notification settings - Fork 7
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
Enhance postgres parser test #105
Conversation
@@ -5,7 +5,52 @@ exports[`parse > should parse postgresql to JSON correctly 1`] = ` | |||
"relationships": {}, | |||
"tables": { | |||
"users": { | |||
"columns": {}, |
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.
There was a mistake in resolving the conflict in PR #90, so I fixed it🙏.
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.
Thanks!!
frontend/packages/db-structure/src/parser/sql/postgresql/converter.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Hirotaka Miyagi <[email protected]>
Thanks for reviewing this PR! |
typeof node.String === 'object' && | ||
node.String !== null && | ||
'str' in node.String && | ||
node.String.str !== 'pg_catalog' |
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.
📝 system catalog
Summary
In PR #93, tests for schemarb's parse process were added. In this PR, I've added tests for PostgreSQL.
Related Issue
Changes
c551919 : add test for Postgresql parser
b9e95ed: fix parsing process (ex. type)
Testing
Other Information