Giter VIP home page Giter VIP logo

mysql-output-converter's Introduction

MySQL Output Converter

This is a short script that I wrote in order to convert the default output of MySQL command-line queries to a CSV format for manipulation in a spreadsheet application.

Inspiration

I often needed to execute custom SQL queries on a production database via SSH and at the frequency that I was running these commands, it was easier to just copy the results from the screen into a file locally and then run this script to convert it to a CSV format than it would have been to actually use MySQL's CSV export functionality to specify a temporary storage location on the server, grab the file from the server somehow, and then delete the temporary file from the server.

mysql-output-converter's People

Contributors

pjrebsch avatar

Watchers

 avatar  avatar

mysql-output-converter's Issues

Incorrect conversion when data contains column division character

When an exported row contains a vertical pipe character |, the conversion of that line will be greater than the number of the actual columns.

I don't think that there is a solution for this because without a knowledge and understanding of what the exported data is and how it's formatted with its use of the | character, the converter won't be able to know if the vertical pipe is part of the data or an actual column separator.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.