Skip to content

Conversation

@tpmccallum
Copy link

I love the fact that the MySQL output can be pasted into SQL editor. I needed the same thing for pasting into Javascript editor when dealing with really large spreadsheets. These changes will allow users to paste the data output straight into their Javascript editor; providing all of the benefits of working with a native Javascript object (and all of its properties).
The code changes in this commit are simply the addition of native instantiation of a Javascript object named mrDataConverterObj, the removal of the newline character (after each record) and enclosing the entire output with single quotes (as you would do if you wanted to parse the output as a JSON object in Javascript).

I love the fact that the MySQL output can be pasted into SQL editor. I needed the same thing for pasting into Javascript editor when dealing with really large spreadsheets. These changes will allow users to paste the data output straight into their Javascript editor; providing all of the benefits of working with a native Javascript object (and all of its properties).
The code changes in this commit are simply the addition of native instantiation of a Javascript object named mrDataConverterObj, the removal of the newline character (after each record) and enclosing the entire output with single quotes (as you would do if you wanted to parse the output as a JSON object in Javascript).
@tpmccallum
Copy link
Author

javascriptObject.docx

Adding the reference so that this can be deployed on the web as a complete solution.
@tpmccallum
Copy link
Author

Pull request 47 and 48 are in relation to the Javascript object solution

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