Обсуждение: Sending queries directly
Hello, <br /> I am creating an agent that runs alongside the postgres written in c++, I have a question: How send sql queriesdirectly for the database without going need to make any connection?<br /> What I call function, which I use file?<br /><br /> Thanks,<br />-- <br />Pedro Belmino.<br />--------------------------------------------------------------------<br/># Ciência da Computação - UNIFOR<br /> # <a href="mailto:pedrobelmino@gmail.com">pedrobelmino@gmail.com</a><br />--------------------------------------------------------------------
Pedro Belmino wrote: > I am creating an agent that runs alongside the postgres written in c++, I > have a question: How send sql queries directly for the database without > going need to make any connection? You can't. Why would you not want to open a connection? -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com
Pedro Belmino wrote: > Hello, > I am creating an agent that runs alongside the postgres written in > c++, I have a question: How send sql queries directly for the database > without going need to make any connection? > What I call function, which I use file? > > You can't. Why can't you use a connection? cheers andrew
pedrobelmino@gmail.com ("Pedro Belmino") writes:
> I am creating an agent that runs alongside the postgres written in
> c++, I have a question: How send sql queries directly for the
> database without going need to make any > connection? > What I
> call function, which I use file?
You don't do that; your agent should use libpq to establish a
connection just like everyone else.
--
(format nil "~S@~S" "cbbrowne" "cbbrowne.com")
http://cbbrowne.com/info/linux.html
I just removed the instructions in MC:COMMON;LINS > which specify that
it should be installed on AI. We'll certainly miss that machine, and
probably spend the rest of our lives fixing programs that mention it.