Bash + PostgreSQL

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Wed Jun 23 14:29:06 UTC 2004


I've added PostgreSQL database interface to Bash shell.  It has only the
basic.  The emphasis is on shell interface, and not trying to replace
'psql'.  I would appreciate if you can test it out, and see if it's
useful.

    http://home.eol.ca/~parkw/index.html#bash
    help pgsql

Usage:

    conninfo='host=... port=... dbname=... user=... password=...'
    text="...SQL statements..."

    pgsql "$conninfo" "$text"

-- 
William Park, Open Geometry Consulting, <opengeometry-FFYn/CNdgSA at public.gmane.org>
No, I will not fix your computer!  I'll reformat your harddisk, though.
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list