https://github.com/moshloop/db-cli
A CLI for executing SQL and loading JSON files into MS SQL, PostgreSQL and MySQL databases
https://github.com/moshloop/db-cli
Last synced: 1 day ago
JSON representation
A CLI for executing SQL and loading JSON files into MS SQL, PostgreSQL and MySQL databases
- Host: GitHub
- URL: https://github.com/moshloop/db-cli
- Owner: moshloop
- Created: 2018-08-09T11:56:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-03T07:08:33.000Z (over 6 years ago)
- Last Synced: 2023-03-11T07:37:02.876Z (over 3 years ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## db-cli
[](https://travis-ci.org/moshloop/db-cli)
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
```