A CLI for executing SQL and loading JSON files into MS SQL, PostgreSQL and MySQL databases
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml
Gopkg.lock
Gopkg.toml
Makefile
README.md
main.go

README.md

db-cli

Build Status

A CLI tool for executing SQL or importing JSON files into databases

Usage: db-cli

Utility to execute SQL or import a JSON file against a DB
Options:
  -driver string
      Database driver name, e.g. mssql, mysql, postgres  (default "mssql")
  -file string
      JSON array to insert into a table
  -pass string
      Database password
  -sql string
      SQL Command to run
  -table string
      Table name to insert into
  -url string
      Database connection URL
  -user string
      Database username
  -version
      show version