Skip to content

XuefengHuang/mysql2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

mysql2json

Dumping MySQL tables to JSON.

Installation

Install mysql2json dependency (if not already installed):

$ go get github.com/go-sql-driver/mysql

Then, install in the usual Go way:

$ go get github.com/XuefengHuang/mysql2json

Usage

import "github.com/XuefengHuang/mysql2json"

mysql2json.Getjson(username, password, address, database, sql_statement)

Example

mysql2json.Getjson("root", "123456", "127.0.0.1", "test", "select * from test")

About

Dumping MySQL tables to JSON.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages