pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedpsql command access through libpq/libpq++
3+ messages / 2 participants
[nested] [flat]
* psql command access through libpq/libpq++
@ 1999-06-15 13:15 StOo <stuart@comodo.net>
0 siblings, 0 replies; 3+ messages in thread
From: StOo @ 1999-06-15 13:15 UTC (permalink / raw)
To: pgsql-interfaces
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* psql command access through libpq/libpq++
@ 1999-06-17 10:02 StOo <stuart@comodo.net>
1999-06-17 13:57 ` Re: [INTERFACES] psql command access through libpq/libpq++ Thomas Lockhart <lockhart@alumni.caltech.edu>
0 siblings, 1 reply; 3+ messages in thread
From: StOo @ 1999-06-17 10:02 UTC (permalink / raw)
To: pgsql-interfaces
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [INTERFACES] psql command access through libpq/libpq++
1999-06-17 10:02 psql command access through libpq/libpq++ StOo <stuart@comodo.net>
@ 1999-06-17 13:57 ` Thomas Lockhart <lockhart@alumni.caltech.edu>
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Lockhart @ 1999-06-17 13:57 UTC (permalink / raw)
To: StOo <stuart@comodo.net>; +Cc: pgsql-interfaces
> 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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~1999-06-17 13:57 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-06-15 13:15 psql command access through libpq/libpq++ StOo <stuart@comodo.net>
1999-06-17 10:02 psql command access through libpq/libpq++ StOo <stuart@comodo.net>
1999-06-17 13:57 ` Thomas Lockhart <lockhart@alumni.caltech.edu>
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