Convert SQL to MD

Turn SQL files into Markdown files. One Markdown table per table the script creates, named after it, with a header row.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop SQL files on the dialor turn it to pick what to do

Your SQL tables as Markdown tables.One table per table the script creates, each with a header row.

  1. What you get

    Each table in the script becomes one Markdown table, named after it. The first row holds the column names, and the rows of data follow.

    The output is one or more files, so a script with several tables can come out as several files. To join them into one document, merge MD.

  2. Dumps from other databases

    A dump from MySQL, MariaDB or PostgreSQL is first rewritten into SQLite's dialect. Dates that are not real dates, such as MySQL's 0000-00-00, are left empty. PostgreSQL true and false become 1 and 0.

    Values are written as they are stored. Binary values are written as escaped text.

  3. What is left out

    Views, functions and triggers are not converted. They are left out with a warning. Only the tables and their data reach the Markdown.

SQL and MD.What each format is.

The formats

From · SQL

SQL Script

SQL statements as text. A database dump that any SQL tool can read or replay.

Extensions
.sql
MIME type
application/sql
Kind
Text and data
To · MD

Markdown

Plain text with light markup for headings, lists, links and code. What agents and developers write in.

Extensions
.md .markdown .mdown
MIME type
text/markdown
Kind
Text and data

In your code.The same SQL to MD conversion through the API, for your app or your agent.

terminal
$ cv convert report.sql report/ --to md
$ cv convert report.sql report/ --to md

Questions.What people ask about SQL to MD.

01OF 04

Yes. One Markdown table is written for each table the script creates, and it is named after that table.

Yes. A dump from MySQL, MariaDB or PostgreSQL is rewritten into SQLite's dialect first, then converted.

They are left empty. MySQL uses this value for dates that are not real dates.

No. Views, functions and triggers are left out, and you get a warning about them.

More conversions.Other ways in and out of SQL and MD.