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

Add formatQuery function #95

Merged
merged 5 commits into from
Aug 29, 2019
Merged

Add formatQuery function #95

merged 5 commits into from
Aug 29, 2019

Conversation

jakeboone02
Copy link
Member

@jakeboone02 jakeboone02 commented Aug 27, 2019

This PR adds a formatQuery function as a named export. formatQuery will parse a given query and return either JSON (via JSON.stringify), or a SQL-ish string. See the README.md file for examples, or run the demo to see it in action.

Fixes #36.

Fixes #51.

@codecov-io
Copy link

codecov-io commented Aug 27, 2019

Codecov Report

Merging #95 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #95   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          11     12    +1     
  Lines         190    222   +32     
  Branches       20     20           
=====================================
+ Hits          190    222   +32
Impacted Files Coverage Δ
src/utils/formatQuery.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d2ebc77...d54992c. Read the comment docs.

@jakeboone02 jakeboone02 merged commit 72f8a4c into master Aug 29, 2019
@jakeboone02 jakeboone02 deleted the format-query branch August 29, 2019 16:25
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.

Has anyone written a parser already? How to implement sql option
2 participants