This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

The program takes one argument: a SQLAlchemy database URL of the form: dialect+driver://username:password@host:port/database (see the SQLAlchemy docs on database URLs for more info). You may need to install additional packages for your database driver of choice (e.g.: mysql-python, psycopg2, pymssql, etc.)

Here’s some basic usage:

$ sqlalchemy_sql_shell
usage: sqlalchemy_sql_shell [-h] url
sqlalchemy_sql_shell: error: too few arguments

$ sqlalchemy_sql_shell sqlite:///
SQL> CREATE TABLE people ( first_name VARCHAR(128), last_name VARCHAR(128) );
SQL> INSERT INTO people VALUES ( 'John', 'Doe' ), ('Mike', 'Smith'), ('Guido', 'van Rossum');
result.rowcount = 3
SQL> SELECT * FROM people;
+------------+------------+
| first_name | last_name  |
+============+============+
| John       | Doe        |
| Mike       | Smith      |
| Guido      | van Rossum |
+------------+------------+

Multi-line queries are supported; A semi-colon signifies the end of the query:

SQL> SELECT *
...> FROM people
...> ;
+------------+------------+
| first_name | last_name  |
+============+============+
| John       | Doe        |
| Mike       | Smith      |
| Guido      | van Rossum |
+------------+------------+

You can also pipe queries into the command for quick one-liners:

$ echo "SELECT 1 + 2;" | sqlalchemy_sql_shell sqlite:///
+-------+
| 1 + 2 |
+=======+
| 3     |
+-------+

Or redirect stdin:

$ cat samples/queries.sql
SELECT 1 + 2;
SELECT 3 + 4;
SELECT 5 + 6;

$ sqlalchemy_sql_shell sqlite:/// < samples/queries.sql
+-------+
| 1 + 2 |
+=======+
| 3     |
+-------+
+-------+
| 3 + 4 |
+=======+
| 7     |
+-------+
+-------+
| 5 + 6 |
+=======+
| 11    |
+-------+
Release History

Release History

0.0.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
sqlalchemy_sql_shell-0.0.0.tar.gz (3.9 kB) Copy SHA256 Checksum SHA256 Source Jan 29, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting