skip to navigation
skip to content

Not Logged In

postdoc 0.1.2

A helper for Postgres + Docker that works for free

A helper for Postgres + Docker that works for free

https://travis-ci.org/crccheck/postdoc.png?branch=master

About

A wrapper that wraps a postgres command with connection arguments according to the DATABASE_URL environment variable.

I originally made this because manually typing the connection args to pqsl, createdb, etc. became tiring. "Ain't nobody got time for dat".

Let's say your environment is like this:

$ env | grep DATABASE_URL
DATABASE_URL=postgres://docker@127.0.0.1/elevators

You could type:

createdb -U docker -h 127.0.0.1 elevators

Or with PostDoc:

phd createdb

Docker doesn't really have anything to do with this. But now that I've been using Docker to manage my Postgres databases, I can't use defaults anymore.

Installation

Install with pip:

pip install postdoc
http://i.imgur.com/qqperK4.jpg
 
File Type Py Version Uploaded on Size
postdoc-0.1.2.tar.gz (md5) Source 2014-02-01 2KB
  • Downloads (All Versions):
  • 3 downloads in the last day
  • 53 downloads in the last week
  • 298 downloads in the last month