Python SQL Commandline
I hacked together a simple command line app in Python for running SQL using any installed DB-API driver.
Usage depends on the arguments of the connect()
method of your DB driver. For example:
python pysql.py psycopg "host=localhost dbname=mydb user=myuser password=mypassword"
or:
python pysql.py sqlite mysqlite.db
or with named parameters:
python pysql.py pymssql --host=localhost --user=sa --password=sapassword
Download: pysql.py