createtable2markdown

command module
v0.0.0-...-46103d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2019 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

createtable2markdown

Installation

go get -u github.com/sters/createtable2markdown

Usage

cat foo.sql | createtable2markdown

also

mysqldump -u database_user -p -d -n --compact database_name | createtable2markdown

You can get markdown table, like this:

foo Table's Definition

|name|type|not null|auto_increment|default|comment|
|---|---|---|---|---|---|
|id|int(10) unsigned|not null||||
|body|text|not null||||

foo Table's Indexes

|name|type|columns|
|---|---|---|
|PRIMARY|primary key|id|

If you want beautiful markdown table, see sters/markdown-table-formatter

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL