Hi,

I've added new PostgreSQL functions to CVS.

--------------------------------------------------------------------
array pg_metadata(resource db, string table)
    Get metadata

--------------------------------------------------------------------
array pg_convert(resource db, string table, array values)
    Check and convert values for PostgreSQL SQL statement
    It escapes and add quotes around values accoding to
    metadata (i.e. Table Definition)

--------------------------------------------------------------------
bool pg_insert(resource db, string table, array values[, bool convert[, 
bool async]])
    Insert values (field=>value) to table

--------------------------------------------------------------------
bool pg_update(resource db, string table, array fields, array ids[, bool 
convert[, bool asy
nc]])
    Update table using values (field=>value) and ids (id=>value)

--------------------------------------------------------------------
bool pg_delete(resource db, string table, array ids[, bool convert[, 
bool async]])
    Delete records has ids (id=>value)

--------------------------------------------------------------------
array pg_select(resource db, string table, array ids[, bool convert])
    Select records that has ids (id=>value)

--------------------------------------------------------------------

They will be available for PHP 4.3.0.
Please refer to test files under ext/pgsql/tests/ for usage.

If you use PHP 4.1.x or above, you can replace old PostgreSQL
module by new one. There are many new functions that will be
avaiable in PHP 4.2.0 also.

Bug reports and comments are welcome.
Enjoy.

--
Yasuo Ohgaki
[EMAIL PROTECTED]





-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to