mongo-hacker icon indicating copy to clipboard operation
mongo-hacker copied to clipboard

Added minimal_quotes feature

Open softwarecreations opened this issue 2 years ago • 0 comments

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

softwarecreations avatar Apr 13 '22 17:04 softwarecreations