-
Notifications
You must be signed in to change notification settings - Fork 2.8k
sql queries refactor (closes #3543) #3662
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
Conversation
|
Deploy preview for hasura-docs ready! Built with commit 9ec7911 |
|
/heroku deploy |
|
@wawhal you don't have enough permissions to execute this command |
|
Review app for commit e77baaa deployed to Heroku: https://hge-ci-pull-3662.herokuapp.com |
| }; | ||
| }; | ||
|
|
||
| export const getSetTableEnumQUery = (tableDef, isEnum) => { |
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.
QUery -> Query
| @@ -1,8 +1,9 @@ | |||
| export const getRunSqlQuery = (sql, shouldCascade, readOnly) => { | |||
| const sqlWithSemicolon = sql[sql.length - 1] !== ';' ? sql + ';' : sql; | |||
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.
We can move this to sqlutils as a function terminateSql. You also need to trim the sql first.
|
Review app for commit f4c1ec2 deployed to Heroku: https://hge-ci-pull-3662.herokuapp.com |
|
Review app https://hge-ci-pull-3662.herokuapp.com is deleted |
|
Review app for commit 9ec7911 deployed to Heroku: https://hge-ci-pull-3662.herokuapp.com |
Description
Fixes semicolon inconsistencies in SQL.
Minor refactor to use a single function for all
run_sqlqueriesAffected components
Related Issues
#3543
Solution and Design
Steps to test and verify
Limitations, known bugs & workarounds
Server checklist
Catalog upgrade
Does this PR change Hasura Catalog version?
Metadata
Does this PR add a new Metadata feature?
run_sqlauto manages the new metadata through schema diffing?run_sqlauto manages the definitions of metadata on renaming?export_metadata/replace_metadatasupports the new metadata added?GraphQL
Breaking changes
No Breaking changes
There are breaking changes:
Metadata API
Existing
querytypes:argspayload which is not backward compatibleJSONschemaGraphQL API
Schema Generation:
NamedTypeSchema Resolve:-
nullvalue for any input fieldsLogging
JSONschema has changedtypenames have changed