Itagaki Takahiro wrote:
> Also new two interfaces will be introduced:
>
> interface Connection /* represents PGconn */
> {
> void disconnect(self);
> Cursor *open(self, query, fetchsize); /* for SELECT */
> int64 exec(self, query); /* for UPDATE, INSERT, DELETE */
> bool transaction_command(self, type);
> }
It's not good to return int64 in exec(), because it could have a
RETURNING clause. (So it also needs a fetchsize).
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.