Skip site navigation (1) Skip section navigation (2)

Re: [INTERFACES] psql command access through libpq/libpq++

From: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
To: StOo <stuart(at)comodo(dot)net>
Cc: interfaces <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Re: [INTERFACES] psql command access through libpq/libpq++
Date: 1999-06-17 13:57:10
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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

                  - Thomas

Thomas Lockhart				lockhart(at)alumni(dot)caltech(dot)edu
South Pasadena, California

In response to

pgsql-interfaces by date

Next:From: Ross J. ReedstromDate: 1999-06-17 16:14:55
Subject: Re: [HACKERS] Case tool
Previous:From: StOoDate: 1999-06-17 10:02:14
Subject: psql command access through libpq/libpq++

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group