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

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: [INTERFACES] psql command access through libpq/libpq++
Дата
Msg-id 3768FEB6.1D16092A@alumni.caltech.edu
обсуждение исходный текст
Ответ на psql command access through libpq/libpq++  (StOo <stuart@comodo.net>)
Список 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


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: StOo
Дата:
Сообщение: psql command access through libpq/libpq++
Следующее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: [HACKERS] Case tool