pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Lockhart <lockhart@alumni.caltech.edu>
To: StOo <stuart@comodo.net>
Cc: interfaces <pgsql-interfaces@postgreSQL.org>
Subject: Re: [INTERFACES] psql command access through libpq/libpq++
Date: Thu, 17 Jun 1999 13:57:10 +0000
Message-ID: <3768FEB6.1D16092A@alumni.caltech.edu> (raw)
References: <3768C7A6.B8CAEE91@comodo.net>

> just a quick question . Is there any way to call psql
> commands such as "\i somefile.txt" through libpq/libpq++.
> This is so i can execute a bunch of queries from a file.
> eg for creating tables.

No, but you could extract the relevant code from psql and isolate it
into a library. While you're at it, contribute it back as a repackaged
psql...

                  - Thomas

-- 
Thomas Lockhart				lockhart@alumni.caltech.edu
South Pasadena, California



view thread (3+ messages)

Message-ID: <3768FEB6.1D16092A@alumni.caltech.edu>
Permalink:  ../3768FEB6.1D16092A@alumni.caltech.edu/
Also on:    postgresql.org/message-id/3768FEB6.1D16092A@alumni.caltech.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: lockhart@alumni.caltech.edu, stuart@comodo.net
  Subject: Re: [INTERFACES] psql command access through libpq/libpq++
  In-Reply-To: <3768FEB6.1D16092A@alumni.caltech.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox