Path: | sample/psql.rb |
Last Update: | Mon Mar 12 20:12:19 -0600 2007 |
an interactive front-end to postgreSQL
Original source code is written by C.
Copyright (c) 1996, Regents of the University of California
ruby version is written by ematsu
Copyright (c) 1997 Eiji-usagi-MATSUmoto <ematsu@pfu.co.jp>
Changes:
Fri 12 Dec 19:56:34 JST 1997 * replace puts -> print
$Id: psql.rb,v 1.1.1.3 2002/04/24 05:46:44 noboru Exp $
PROMPT | = | "=> " |
MAX_QUERY_BUFFER | = | 20000 |
DEFAULT_SHELL | = | "/bin/sh" |
DEFAULT_EDITOR | = | "vi" |
DEFAULT_FIELD_SEP | = | "|" |
PsqlSettings | = | Struct.new("PsqlSettings", :db, :queryFout, :opt, :prompt, :gfname, :notty,:pipe, :echoQuery,:quiet, :singleStep, :singleLineMode, :useReadline) |
PrintOpt | = | Struct.new("PrintOpt", :header, :align, :standard, :html3, :expanded, :pager, :fieldSep, :tableOpt, :caption, :fieldName) |