From 8fab36f99c4fe55ef3bb67907c49fb3c9bb45f2d Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Mon, 8 Apr 2002 01:50:06 +0000 Subject: [PATCH] Update README --- ext/pgsql/README | 47 +++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/ext/pgsql/README b/ext/pgsql/README index 2a93349d3f..2a1b0f4212 100644 --- a/ext/pgsql/README +++ b/ext/pgsql/README @@ -42,13 +42,15 @@ You cannot specify PostgreSQL source directly to build PostgreSQL module with specific version. You need to install PostgreSQL somewhere in your system to build PHP with PostgreSQL support. -==== Note For PostgreSQL 7.2 beta ==== -Current CVS version (probably 4.0.6 or later) compiles without -modefication. +==== Note For PostgreSQL 7.2 ==== +I've tested upto 7.2.1. ==== TODO List === -pg_convert_array() - convert array elements for SQL statement. -Support async connection create. +Make pg_convert() smater. + - Better regex + - User defiend type support +Support async connection. +Support async notification. ==== Experimental Functions ===== @@ -173,20 +175,49 @@ Seeks position of large object -------------------------------------------------------------------- -Notice messge function +Notice message function -------------------------------------------------------------------- string pg_last_notice(resource connection) Returns the last notice set by the backend -Currently pg_last_notice() does not return notice message associated -with the connection. + +This function is fully implemed in only in current CVS version. +PHP 4.3.0 supposed to included fully implemented version. NOTE: Added in PHP 4.0.6, but there is bug in notice message handling in PHP 4.0.6. Do no use 4.0.6 with pgsql module!! -------------------------------------------------------------------- +Utility functions (for PHP 4.3.0) + +-------------------------------------------------------------------- +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 + +-------------------------------------------------------------------- +bool pg_insert(resource db, string table, array values[, bool convert[, bool async]]) + Insert values (filed=>value) to table + +-------------------------------------------------------------------- +bool pg_update(resource db, string table, array fields, array ids[, bool convert[, bool async]]) + 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) + +-------------------------------------------------------------------- + Again, experimental functions are subject to be changed without notice. -- 2.50.1