Skip to content

moshloop/db-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A CLI for executing SQL and loading JSON files into MS SQL, PostgreSQL and MySQL databases

Resources

Stars

Watchers

Forks

Packages

No packages published