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: 0

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