Skip to content

sonnyksimon-archive/dbq.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbq.py
======

api
---

Parameters:

    "connection_string" 

    Must be a valid connection string. dbq.py uses SQLAlchemy, so test it on your
    own machine first and ensure that the webserver can reach the database host.

    "sql_query"

    The query to run on the database.

cli
---

Usage: dbq.py [OPTIONS]

  This little Python script runs SQL statements on databases from the
  command-line.

  You must pass in a valid connection string.

  The raw query overrides the file query.

Options:
  --conn TEXT      Connection string.
  --file FILENAME  SQL query file.
  --sql TEXT       Raw query.
  --help           Show this message and exit.

About

Outputs the Result Set of a SQL Query as a JSON listing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published