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

Added minimal_quotes feature #220

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

softwarecreations
Copy link
Contributor

Description of changes

When enabled, we will quote strings as minimally as possible.
So when a string doesn't contain ' then we quote with single quotes.
If it contains ' but not " then we quote with double quotes.
If a string contains single and double quotes, we quote with single quotes.

Testing

I ran make install and ran a few queries with some test data.

Software Version(s) tested
mongo shell 5.0.7
MongoDB server 5.0.7
Operating system Linux x64 on modern kernel

Screenshots

javascript_keys:true, minimal_quotes:false
image
javascript_keys:true, minimal_quotes:true
image

…avaScript notation (mongosh style), rather than JSON, meaning that { _id:1, name:bob, height:180 } is displayed like this { _id:1, name:bob, height:180 } which is easier for humans to read.'
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.

1 participant