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

fix(typings): consistency in results of sql method #118

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

amandesai01
Copy link
Contributor

Resolves #99

TLDR; on issue:
Since code runs differently for select queries and non-select queries, correct typings are not produced.

This PR adds optional success field in default type, essentially, making required type a subset, and updated success flag when select query runs.

Copy link

codecov bot commented Oct 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@5938cc5). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #118   +/-   ##
=======================================
  Coverage        ?   45.78%           
=======================================
  Files           ?       19           
  Lines           ?      688           
  Branches        ?       66           
=======================================
  Hits            ?      315           
  Misses          ?      368           
  Partials        ?        5           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@amandesai01
Copy link
Contributor Author

@pi0 anything needed here? a straightforward fix acc to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Insert return type mismatch
1 participant