Skip to content

A module that provides convenience classes for scripting against a PostgreSQL database.

License

Notifications You must be signed in to change notification settings

lysol/pglunchbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pglunchbox

This module provides a couple of convienence classes for use with scripting against a PostgreSQL database. PGOptionParser extends OptionParser from optparse to add default options akin to psql's options. PGOptionParser will also parse your pgpass file, if present, by way of the PGPassFile class.

PGPassFile also has get_login and get_password methods, that will match the following keyword arguments against lines in your pgpass file, and return the first matching login and/or password:

  • hostname
  • port
  • database
  • username (needed for get_password)

Derek Arnold

http://dderek.com

About

A module that provides convenience classes for scripting against a PostgreSQL database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages