Skip to content
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

Support Native queries, parameterized views #12

Merged
merged 30 commits into from
Apr 10, 2024
Merged

Support Native queries, parameterized views #12

merged 30 commits into from
Apr 10, 2024

Conversation

BenoitRanque
Copy link
Collaborator

@BenoitRanque BenoitRanque commented Apr 2, 2024

v0.2.2 release

This PR adds support for (parameterized) native queries, and parameterized views.

It also includes multiple bugfixes and changes to hopefully generally improve the codebase.

  • Return error if empty list of query variables passed. Variables should be ommited or be a list with at least one member
  • Use table comment as description for corresponding collection and object type
  • Return json representation for applicable scalar types in schema response
  • Add configuration.schema.json to generated configuration directory
  • Bump ndc-spec dependency to 0.1.1
  • Config breaking change: use maps for tables and columns list, rather than arrays. This should help avoid duplicate alias issues
  • Move parsing column data types into configuration time and startup time, instead of query execution time. This should give error feedback earlier
  • Allow tables and native query return types to be marked as identical to return types for other tables/queries
  • Support parameterized views (don't support column valued arguments)
  • Support parameterized native queries, except in foreach queries. Also don't support column valued arguments
  • Change explain output so the console knows how to extract generated SQL and sql explain plan to display to the user
  • Pretty print explain SQL output
  • Fix a bug where no result sets where returned when foreach predicate didn't match any rows. Correct behavior: empty result set is returned

…tring

remove a bug where a scalar type string representation was assumed to be a valid typecast string
@BenoitRanque BenoitRanque changed the title Wip/v0.2.2 Support Native queries, parameterized views Apr 10, 2024
@BenoitRanque BenoitRanque marked this pull request as ready for review April 10, 2024 00:38
@BenoitRanque BenoitRanque merged commit 6b349d7 into main Apr 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants