Received: from localhost (IDENT:root@hectic-1.jpl.nasa.gov [128.149.68.203]) by hub.org (8.9.3/8.9.3) with ESMTP id KAA25540 for ; Thu, 17 Jun 1999 10:09:40 -0400 (EDT) (envelope-from lockhart@alumni.caltech.edu) Received: from alumni.caltech.edu (lockhart@localhost [127.0.0.1]) by localhost (8.8.7/8.8.7) with ESMTP id NAA32381; Thu, 17 Jun 1999 13:57:10 GMT Sender: lockhart@hub.org Message-ID: <3768FEB6.1D16092A@alumni.caltech.edu> Date: Thu, 17 Jun 1999 13:57:10 +0000 From: Thomas Lockhart X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.0.36 i686) X-Accept-Language: en MIME-Version: 1.0 To: StOo CC: interfaces Subject: Re: [INTERFACES] psql command access through libpq/libpq++ References: <3768C7A6.B8CAEE91@comodo.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > 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